Mercurial > vanilla
diff Templates/rc @ 620:80faeb51a8f7
templates: update rc
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 23 Jul 2019 21:00:00 +0200 |
parents | 030ebf8e0a69 |
children | 657ee4987f4d |
line wrap: on
line diff
--- a/Templates/rc Tue Jul 23 20:21:00 2019 +0200 +++ b/Templates/rc Tue Jul 23 21:00:00 2019 +0200 @@ -8,7 +8,7 @@ : ${TEMPLATE_CMD:=/bin/template} : ${TEMPLATE_ARGS:=--foo} -: ${TEMPLATE_PID:=/var/run/template/template.pid} +: ${TEMPLATE_PID:=/var/run/template.pid} template_start() { @@ -19,7 +19,7 @@ template_status() { if [ -s $TEMPLATE_PID ]; then - echo "template is running with pid: `cat $TEMPLATE_PID`" + echo "template is running with pid: $(cat $TEMPLATE_PID)" else echo "template is not running" fi @@ -29,7 +29,7 @@ { if [ -s $TEMPLATE_PID ]; then echo "Stopping template." - kill -QUIT `cat $TEMPLATE_PID` + kill -QUIT $(cat $TEMPLATE_PID) fi }