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

Re: [cobalt-users] How do I actually Restart ProFTPd service?



"Fabrice Prémel" wrote:
> 
> Wouldn't kill -HUP `cat /var/run/inetd.pid` be more correct ?

In this case, yes.  In all cases no.
 
> pidof is just a link to killall5(8), which is not the safest way to
> kill a process. Suppose some user has a running process with the name
> of inetd (unprobable, but possible), you will send the signal to that
> process too. Even if it is a SIGHUP, it's still a signal sent by
> root.

killall5 doesn't kill the processes if you feed it only a process
name, it will return the pids of those processes.
 
Jeff

-- 
Jeff Lovell
Cobalt Networks, Inc.