Browse Source

(fix #9) Fix start-stop-daemon call by removing --name option.

Winston Li 11 years ago
parent
commit
4d98159398
1 changed files with 1 additions and 1 deletions
  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
 	if [ -f "$PIDFILE" ]; then
 		echo "Stopping Writelatex-Git Bridge..."
 		echo "Stopping Writelatex-Git Bridge..."
-		start-stop-daemon --stop --quiet --retry=TERM/60/KILL/5 --pidfile $PIDFILE --name $NAME
+		start-stop-daemon --stop --quiet --retry=TERM/60/KILL/5 --pidfile $PIDFILE
 		# Many daemons don't delete their pidfiles when they exit.
 		# Many daemons don't delete their pidfiles when they exit.
 		rm -f $PIDFILE
 		rm -f $PIDFILE
 		echo "WriteLatex-Git Bridge stopped."
 		echo "WriteLatex-Git Bridge stopped."