mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 02:20:17 +00:00
Quick fix for the sysadm init.d files.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user