diff --git a/services/git-bridge/bin/wlgb b/services/git-bridge/bin/wlgb index 885e39dfed..4587a36113 100755 --- a/services/git-bridge/bin/wlgb +++ b/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."