Add stop fix for supervisor. Requires new openrc-run patch in freebsd base.

This commit is contained in:
Joe Maloney
2017-02-12 17:23:55 -05:00
parent de9b9af3c0
commit 8080a83e1b
2 changed files with 30 additions and 0 deletions

View File

@@ -29,3 +29,23 @@ 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
}
stop()
{
t=$(mktemp)
for pid in $(cat $pidfile) ; do
echo $pid >$t
pidfile=$t default_stop
done
rm -f $t
}

View File

@@ -31,3 +31,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
}