[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: restarting a daemon



On Tue, Sep 25, 2001 at 02:48:12PM -0400, Giulio Morgan wrote:
> I am trying to modify and "reload" my exim.conf file. The beginning of the
> sample conf file says "...you change Exim's configuration file, you *must*
> remember to HUP the Exim daemon". I am unable to determine how to HUP a daemon
> without rebooting. Any help will be appreciated, thank you so much.

What it is asking you to do is send the "HUP" signal to exim.  The
program you use to send signals to other programs is the "kill" program.
"kill -l" will give you a list of the signals you can send.  

ben@green:~$ kill -l
 1) SIGHUP       2) SIGINT       3) SIGQUIT      4) SIGILL
 5) SIGTRAP      6) SIGABRT      7) SIGBUS       8) SIGFPE
 etc.

So, to send the HUP signal, you would first find out the PID (process
Identification) of exim:

ben@green:~$ ps auwx | grep exim
ben       3818  0.0  0.7  1352  468 pts/5    S    12:39   0:00 exim

The second column is what you're looking for.  Then run "kill -1 3818"
to send the HUP signal to exim.  

Above is the dirty way to do it.  The scripts in /etc/init.d/ are what
start, stop, and reload the programs you're running, including exim.
The nice way to reload exim is:

ben@green:~# /etc/init.d/exim reload

(you must be root for either of these solutions.)

Generally, whenever you upgrade, change settings, etc. you must restart
the program dependant on these settings.  The commands you can give
init.d scripts are start, stop, reload, and restart.  (sometimes there
are others.)  To be absolutely positive that you've reloaded your
changes, stop and then start the daemon instead of just issuing a
reload.  

-ben

-- 

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Ben Hartshorne	...Discarding smoothly, as we disembark,
ben@hartshorne.net All thoughts that held us wiser for a moment
ben.hartshorne.net Up there, alone, in the impartial dark. -M. Oliver
My PGP key is at /pgp.txt.  Please encrypt all communications.

Attachment: pgpSNzoLTyv9A.pgp
Description: PGP signature


Reply to: