[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Email aliasing
On Wed, May 24, 2000 at 02:26:16PM +0200, Jens Kristian Søgaard wrote:
: Eric Beck <admin@xxxxxxxxxxxxxx> writes:
:
: > ># kill -HUP `cat /var/run/sendmail.pid`
:
: > can this be done just as efficiently/correctly by this
:
: > /etc/rc.d/init.d/sendmail stop
: > /etc/rc.d/init.d/sendmail start
:
: Not quite.
:
: It has the same effect yes, but it takes longer time to completely
: shutdown sendmail and it again. And when run on the RaQ, it also
: messes up the LCD display :-(
And does not work all the time. The init.d scripts for stop and starting
sendmail does not always stop the main sendmail process (during shutdown
killall gets it if the script has not) do changes may not always take
effect. Jeff's solution is the recommended way to restart sendmail. If
you are lazy you can create a quick script to do it:
#!/bin/bash
PID_FILE=/var/run/sendmail.pid
kill -HUP `cat $PID_FILE`
echo "Sent signal HUP to sendmail process $PID_FILE"
exit 0
or be lazy like me and run:
killall -HUP sendmail
--
Mat Kovach mkovach@xxxxxxxxxxxxxxxxx
Cleveland Linux User Group http://cleveland.lug.net