On Mon, 18 Jun 2001, Virginia Chism wrote:

> I need to learn how to restart qmail on my BSDi system.  I have not been
> able to locate a qmail-restart in any of the qmail directories.
> 
> Whenever I make changes in qmail, I have had to resort to `shutdown -r now`
> thus rebooting the entire system.  I don't like doing this.
> 
> Someone told me to try 'killall -SIGHUP qmail', but someone else said this
> might kill everything running - that the machine would not read to the
> 'qmail' at the end of the line.

That is not true, killall only kills the specified command with the
specified signal.

killall -HUP qmail-send 

should work. 

But i don't think BSDi knows the killall command.



kill -HUP `ps auwx | grep qmail-send | grep -v grep | awk -F" " {'print
$2'}`

(all on 1 line) should also do it. 


Or maybe even (if you have bash)

for PID in  \
`ps auwx | grep qmail-send | grep -v grep | awk -F" " {'print $2'}`; do \
kill -HUP $PID; done

(not on 1 line but don't miss the backslashes)


Grtz, 

Arjen.


Reply via email to