Package: sysv-rc
Version: 2.86.ds1-38+etchnhalf.1

I have disabled the automatic start of a service (apache2) in all runlevels by configuring it as stopped (as suggested in the manpage of update-rc.d).

If I call

# invoke-rc.d apache2 [start|restart]

the service is not started, but if I call

# invoke-rc.d apache2 force-reload

(as the libapache2-mod-php5 does) the service is started if not runnin, or restarted if running, as force-reload is an alternate name for restart.

If I run

# invoke-rc.d apache2 reload

the init script is executed, and returns with an error if the service is not running.

I think that actions like reload or force-reload must work like start and restarting, doing nothing if the service is disabled in current runlevel.

I propose to change line 354 of /usr/sbin/invoke-rc.d from
  start|restart)
to
  start|restart|reload|force-reload)

if this not hurt something (obscure to me).


Regards.

        Paolo Miotto

----------------------------------------------------------------------
SEMEL (SErvizio di Messaging ELettronico) - CSIT -Universita' di Udine





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to