Commit 1c83d8d0 authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

fix init script starting multiple cc-node instances

parent e0f67622
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -49,9 +49,8 @@ fi
#
do_start()
{
    start-stop-daemon --start --quiet --background --make-pidfile \
            --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON \
            --test > /dev/null || return 1
    start-stop-daemon --start --quiet --background --name $NAME \
            --exec $(readlink -f $(which python)) --test > /dev/null || return 1
    start-stop-daemon --start --quiet --background --make-pidfile \
            --pidfile $PIDFILE --chuid $USER:$GROUP --exec $DAEMON \
            -- $DAEMON_OPTS || return 2