Преглед на файлове

Modify init script to use start-stop-daemon for stopping.

Winston Li преди 11 години
родител
ревизия
5ecc36b80e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      services/git-bridge/bin/wlgb

+ 1 - 1
services/git-bridge/bin/wlgb

@@ -75,7 +75,7 @@ do_stop()
 {
 	if [ -f "$PIDFILE" ]; then
 		echo "Stopping Writelatex-Git Bridge..."
-		kill -9 `cat $PIDFILE`
+		start-stop-daemon --stop --quiet --retry=TERM/60/KILL/5 --pidfile $PIDFILE --name $NAME
 		# Many daemons don't delete their pidfiles when they exit.
 		rm -f $PIDFILE
 		echo "WriteLatex-Git Bridge stopped."