Subject: /etc/ppp/ip-down
To: None <netbsd-users@NetBSD.ORG>
From: xiamin <ingerrn@cris.com>
List: netbsd-users
Date: 05/10/1997 23:12:47
I am trying to write a script that, when pppd does down, kills sendmail.
/etc/ppp/ip-up starts up sendmail -bd -q2m just fine.
/etc/ppp/ip-down does terrible things when it runs. It seems to kill off 
alot of processes, including X (I have only run it twice, once with X, 
and both times it killed more than 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

can someone please tell me what I am doing wrong?
TIA,
-xiamin