Re: [EXIM] periodic queue runs

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Harald Meland
Cc: exim-users
Asunto: Re: [EXIM] periodic queue runs
On 16 Jan 1999, Harald Meland wrote:

> On connect:
>   /bin/sh -c 'rm /usr/exim/configure; \
>               ln -s configure.link_is_up /usr/exim/configure; \
>               kill -HUP `cat /var/lock/exim-daemon.pid`; \
>               /usr/exim/bin/exim -qf; '


The problem with that is that there is a very short window of time when
there is no configuation file. That won't bother the daemon, but it will
bother any other calling of Exim, e.g. by a local user to submit a new
message. However, you can do this sort of thing "atomically" by using
mv to replace the link in one operation instead of destroying it and
recreating it in two. In other words, use something like

ln -s configure_link_is_up new_configure
mv new_configure configure

instead of

rm configure
ln -s configure_link_is_up configure


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.



--
*** Exim information can be found at http://www.exim.org/ ***