1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

PID file creation is now safe: Re-enable previous 'stop' procedure and kill

process identified in PID file instead of the 'killall jftpgw' used as a
work-around.
This commit is contained in:
Stefan Eßer 2003-04-04 07:20:12 +00:00
parent 3d9c8f7f1c
commit 61e0035ee2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78115

View File

@ -16,10 +16,8 @@ start)
;;
stop)
# work around PID file creation problem
killall jftpgw
# PID=`cat $PIDFILE 2>/dev/null`
# ps -p "$PID" | tail +2 | grep -sqw $PROGRAM && kill $PID
PID=`cat $PIDFILE 2>/dev/null`
ps -p "$PID" | tail +2 | grep -sqw $PROGRAM && kill $PID
;;
*)