Quick fix for the sysadm init.d files.

This commit is contained in:
Ken Moore
2017-02-13 08:09:06 -05:00
parent 8080a83e1b
commit 1863b10340
2 changed files with 11 additions and 11 deletions

View File

@@ -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
}

View File

@@ -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
}