# HG changeset patch # User David Demelier # Date 1567452120 -7200 # Node ID 5aaa48712c232788c7080257921ff930ceeb296f # Parent 52b36e54f1b7e540a59855d52558a8be50e4e470 vanilla: update rc-ssd template diff -r 52b36e54f1b7 -r 5aaa48712c23 Templates/init/rc-ssd --- a/Templates/init/rc-ssd Mon Sep 02 21:20:00 2019 +0200 +++ b/Templates/init/rc-ssd Mon Sep 02 21:22:00 2019 +0200 @@ -31,7 +31,10 @@ echo "template is already running with pid: $(cat $TEMPLATE_PID)" else echo "Starting template: $TEMPLATE_CMD $TEMPLATE_ARGS" - start-stop-daemon -Sbvp $TEMPLATE_PID -x $TEMPLATE_CMD -- $TEMPLATE_ARGS + start-stop-daemon \ + -Sbvp $TEMPLATE_PID \ + -m $TEMPLATE_PID \ + -x $TEMPLATE_CMD -- $TEMPLATE_ARGS fi } @@ -48,7 +51,8 @@ { if [ -s $TEMPLATE_PID ]; then echo "Stopping template." - start-stop-daemon -Kp $TEMPLATE_PID + start-stop-daemon -Kqp $TEMPLATE_PID + rm -f $TEMPLATE_PID fi }