[Pkg-sysvinit-devel] Bug#502195: invoke-rc.d with action [force-]reload doesn't obey runlevel constraints
Paolo Miotto
paolo.miotto at uniud.it
Tue Oct 14 11:19:04 UTC 2008
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
More information about the Pkg-sysvinit-devel
mailing list