Re: Automatically restart daemons
On 02-Jun-99, 10:54 (CDT), Matt Kern <firstname.lastname@example.org> wrote:
> It might be a nice idea if we put the code to restart various daemons into
> their config files.
> e.g. # /etc/inetd.conf: see inetd(8) for further informations.
> # Internet server configuration database
> # Local variables:
> # mode: text
> # compile-command: "kill -HUP `cat /var/run/inetd.pid`"
> # End:
> This is a very useful feature and can really help the turnaround time for
> adding new services manually. Any thoughts?
The (Debian specific) canonical way to force a demon to reload its
configuration file is
This will perform the necessary command to cause a daemon to reload its
configuration file if and only if it can be done without stopping and
restarting the daemon. If the daemon doesn't support such an action, the
the command should report somethe along the lines of "reload not supported",
in which case you can use
which is required to work. More info in the policy document.