[Spread-users] Fwd: Terminating a daemon

Jonathan Stanton jonathan at cnds.jhu.edu
Fri Nov 9 14:52:10 EST 2007

On Fri, Nov 09, 2007 at 01:45:55PM -0500, Daniel Marques wrote:
> Hi All.
> I have two (quick) questions regarding daemon termintation.
> 1. It is possible to cleanly terminate a daemon in a non interactive
> manner?  Is there a command line tool, or a signal that can be
> manually sent, to terminate the daemon.
> If I terminate with SIGKILL, I sometimes need to manually delete
> /tmp/4803 before a daemon can be restarted.
You should not need to do this *unless* you are running the daemon as a different user or 
with different priviledges the second time. Spread removes the old sockets in /tmp when it 
starts up.

My usual way is to SIGKILL it. The monitor program can also cause a selective termination 
of daemons, but that won't fix the problem with /tmp/4803.

> 2. Can someone explain "Monitor safe mode", and how to turn it off.

Look in the sample.spread.conf file. There is an option there to allow dangerous monitor 

You have to explicitly enable this as it allows anyone who has access to your 
local network to send commands to kill your spread daemons. On a protected network it's 


Jonathan R. Stanton         jonathan at cs.jhu.edu
Dept. of Computer Science   
Johns Hopkins University    

More information about the Spread-users mailing list