tUse sbin in rc.geomyidae and kill all PIDs. - geomyidae - A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
HTML git clone git://r-36.net/geomyidae
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit cfe4252fd21b32d273ffe9c45b9ce40232e7f6dd
DIR parent a871e3d7021f3d924c3f7f968fccb806d568fdbd
HTML Author: Christoph Lohmann <20h@r-36.net>
Date: Fri, 25 Sep 2020 14:45:17 +0200
Use sbin in rc.geomyidae and kill all PIDs.
Diffstat:
rc.d/rc.geomyidae | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/rc.d/rc.geomyidae b/rc.d/rc.geomyidae
t@@ -6,14 +6,14 @@ PID=($(pidof -o %PPID /usr/sbin/geomyidae))
case "$1" in
start)
echo "Starting geomyidae"
- /usr/bin/geomyidae $GEOMYIDAE_ARGS 2>&1
+ /usr/sbin/geomyidae $GEOMYIDAE_ARGS 2>&1
if [ $? -gt 0 ]; then
echo "Startup failed"
fi
;;
stop)
echo "Stopping all geomyidae processes"
- [ -n "$PID" ] && kill ${PID[@]} >/dev/null
+ [ -n "$PID" ] && kill $PID >/dev/null
if [ $? -gt 0 ] && [ -n "$PID" ]; then
echo "Stopping failed for at least one process"
fi