mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 20:43:41 -05:00
Modify init script to use start-stop-daemon for stopping.
This commit is contained in:
parent
30521b988b
commit
5ecc36b80e
1 changed files with 1 additions and 1 deletions
|
@ -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."
|
||||||
|
|
Loading…
Reference in a new issue