diff options
author | se <se@FreeBSD.org> | 2003-04-04 15:20:12 +0800 |
---|---|---|
committer | se <se@FreeBSD.org> | 2003-04-04 15:20:12 +0800 |
commit | 19616f51da389860a7375484dd67178d5b1978aa (patch) | |
tree | 10f129db2d95542b8a6f99d8d88f374388243179 /ftp | |
parent | 2679a08cbabedeb778ea93551dbe9a5c193605cb (diff) | |
download | freebsd-ports-gnome-19616f51da389860a7375484dd67178d5b1978aa.tar.gz freebsd-ports-gnome-19616f51da389860a7375484dd67178d5b1978aa.tar.zst freebsd-ports-gnome-19616f51da389860a7375484dd67178d5b1978aa.zip |
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.
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/jftpgw/files/jftpgw.sh.in | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ftp/jftpgw/files/jftpgw.sh.in b/ftp/jftpgw/files/jftpgw.sh.in index 9c5fc8616a12..c0e8ae90134d 100644 --- a/ftp/jftpgw/files/jftpgw.sh.in +++ b/ftp/jftpgw/files/jftpgw.sh.in @@ -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 ;; *) |