Subject: /var/run/sendmail.pid (was Re: newsyslog)
To: Andrew Brown <atatat@atatdot.net>
From: Greywolf <greywolf@starwolf.com>
List: tech-userlevel
Date: 07/12/2000 15:54:03
On Wed, 12 Jul 2000, Andrew Brown wrote:
# but i feel that
#
# alias hup 'kill -HUP `head -1 /var/run/\!$.pid`'
#
# would be better, since some things (sendmail, others?) store more than
# just a pid in there. unless, of course, i'm simply expected to ignore
# the errors that kill gives me from that.
I'm curious as to why sendmail doesn't write it out in the format
pid;
previous-incantation-with-args
That way you could do
eval kill `cat /var/run/sendmail.pid`
and it would effectively do a restart.
--*greywolf;
--
BSD: The Last Bastion of the true UNIX Religion.