diff --git a/src/init.d/sysadm b/src/init.d/sysadm index 84ee8af..7cc2a88 100755 --- a/src/init.d/sysadm +++ b/src/init.d/sysadm @@ -39,13 +39,3 @@ stop() done rm -f $t } - -stop() -{ - t=$(mktemp) - for pid in $(cat $pidfile) ; do - echo $pid >$t - pidfile=$t default_stop - done - rm -f $t -} diff --git a/src/init.d/sysadm-rest b/src/init.d/sysadm-rest index 8a6ece4..50b83d6 100755 --- a/src/init.d/sysadm-rest +++ b/src/init.d/sysadm-rest @@ -3,7 +3,7 @@ # Released under the 2-clause BSD license name="SysAdm Server (REST)" -pid=/var/run/sysadm-rest.pid +pidfile=/var/run/sysadm-rest.pid prefix=/usr/local/ command=${prefix}bin/sysadm-binary command_args="--rest" @@ -29,3 +29,13 @@ start_pre() { ssl_keygen "$1" } + +stop() +{ + t=$(mktemp) + for pid in $(cat $pidfile) ; do + echo $pid >$t + pidfile=$t default_stop + done + rm -f $t +}