Peter Samuelson wrote:
[Olaf van der Spek]
But where does it check whether the service is supposed to run in the
current runlevel? I didn't see that check in the script itself.
It doesn't. No init script does. That is the job of invoke-rc.d.
invoke-rc.d decides whether to run the script or
[Olaf van der Spek]
invoke-rc.d decides whether to run the script or not, based on the
current runlevel. invoke-rc.d always runs a script for 'reload' or
'force-reload' even if the runlevel doesn't include the service, but
the same is _not_ true for 'start' or 'restart'.
What's the reason
Peter Samuelson wrote:
[Olaf van der Spek]
invoke-rc.d decides whether to run the script or not, based on the
current runlevel. invoke-rc.d always runs a script for 'reload' or
'force-reload' even if the runlevel doesn't include the service, but
the same is _not_ true for 'start' or 'restart'.
[Olaf van der Spek]
I disabled apache2 in all runlevels with sysv-rc-conf. Start and
restart work fine, force-reload doesn't. And since php5 uses
force-reload...
Right, should be fixed for the next upload. Status quo, 'force-reload'
is equivalent to 'restart', which (correctly) starts the
Peter Samuelson wrote:
[Olaf van der Spek]
I disabled apache2 in all runlevels with sysv-rc-conf. Start and
restart work fine, force-reload doesn't. And since php5 uses
force-reload...
Right, should be fixed for the next upload. Status quo, 'force-reload'
is equivalent to 'restart', which
[Olaf van der Spek]
But where does it check whether the service is supposed to run in the
current runlevel? I didn't see that check in the script itself.
It doesn't. No init script does. That is the job of invoke-rc.d.
invoke-rc.d decides whether to run the script or not, based on the
Package: apache2
Severity: normal
Hi,
I disabled apache2 in all runlevels with sysv-rc-conf. Start and restart work
fine, force-reload doesn't. And since php5 uses force-reload...
debian:~# invoke-rc.d apache2 start
debian:~# invoke-rc.d apache2 start
debian:~# invoke-rc.d apache2 restart
7 matches
Mail list logo