Ola Lundqvist wrote on 05/07/2006 22:22: > On Tue, Jun 20, 2006 at 08:58:53PM +0200, Sven Mueller wrote: > >>Package: ntop >>Version: 2:3.0-5 >>Severity: normal >> >>First of all: This might be considered a wishlist bug, but since LSB >>compliance is a release goal for Etch, I leave it at Severity normale. >> >>Now to the bug itself: >> >>/etc/init.d/ntop reload >> >>Doesn't reload but instead restarts. This is not LSB conforming. >>According to LSB, the script should instead return error code "3" >>(feature not implemented), see bottom of the LSB 20.2 Init Script >>Actions at: > > Ok, I was not aware that LSB stated that. Something like "exit 3" I assume > then?
Yes. In summary, the following parameters should be supported, with
those marked with * being optional (exit 3 if unsupported):
- start start the service
- stop stop the service
- restart stop and restart the service if the service is already
running, otherwise start the service
- try-restart* restart the service if the service is already running
- reload* cause the configuration of the service to be reloaded
without actually stopping and restarting the service
- force-reload cause the configuration to be reloaded if the service
supports this, otherwise restart the service if it is
running
- status print the current status of the service
Many init scripts alias force-reload to restart, which is actually
wrong, since "restart" is equal to "stop" followed by "start" while
try-restart only does that sequence if the service is already running.
Force-reload is equal to try-restart if the service doesn't support
"reload".
regards,
Sven
signature.asc
Description: OpenPGP digital signature

