What is the difference between the following
sudo /etc/init.d/lighttpd restart
and
/etc/init.d/lighttpd force-reload
?
What is the difference between the following
sudo /etc/init.d/lighttpd restart
and
/etc/init.d/lighttpd force-reload
?
On my platform (ubutnu), I found that they are the same. Just looked the file and found:
For other services, it might be different.
This can also be achieved using Signals. See the Blogpost about Lighty's Angel for an overview of the Signals supported by lighttpd.
In short
The debian Policy Manual also explains the different parameters:
start
start the service,
stop
stop the service,
restart
stop and restart the service if it's already running, otherwise start the service
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.