net-misc/utm5: fix utm5_rfw initscript, make it properly use pidfile instead of killing every process named utm5_rfw
This commit is contained in:
parent
ab280d116f
commit
681bc74b5a
@ -64,12 +64,14 @@ start() {
|
||||
eerror "Can not write into $LOG_FILENAME. Please check permitions."
|
||||
fi
|
||||
export LD_LIBRARY_PATH="/netup/utm5/lib"
|
||||
/bin/su $USERNAME -c "/netup/utm5/bin/utm5_rfw $ARGS -c /etc/utm5/rfw5.cfg >> $LOG_FILENAME 2>&1 &"
|
||||
start-stop-daemon --start --quiet --background \
|
||||
--make-pidfile --pidfile /run/utm5_rfw.pid \
|
||||
--exec /netup/utm5/bin/utm5_rfw -- $ARGS -c /etc/utm5/rfw5.cfg
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping utm5_rfw"
|
||||
killall -s 9 utm5_rfw
|
||||
start-stop-daemon --stop --quiet --signal KILL --pidfile /run/utm5_rfw.pid
|
||||
eend $?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user