Subject: Re: /etc/ppp/ip-down
To: xiamin <ingerrn@cris.com>
From: Steve Carlson <stevec@accessone.com>
List: netbsd-users
Date: 05/11/1997 09:53:40
On Sat, 10 May 1997, xiamin wrote:
> I am trying to write a script that, when pppd does down, kills sendmail.
> here is the script:
> #!/bin/sh
> if [ -f /var/run/sendmail.pid ]
> then
> PID="/usr/bin/head -1 /var/run/sendmail.pid"
> kill ${PID}
> fi
#!/bin/sh
if [ -f /var/run/sendmail.pid ]
then
read PID < /var/run/sendmail.pid
kill $PID
fi
Might be better. It works for me without the side effects you mention.
--
Steve Carlson
stevec@accessone.com