소스 검색

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
 	if [ -f "$PIDFILE" ]; then
 		echo "Stopping Writelatex-Git Bridge..."
 		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.
 		# 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."