commit cfe4252fd21b32d273ffe9c45b9ce40232e7f6dd
parent a871e3d7021f3d924c3f7f968fccb806d568fdbd
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:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/rc.d/rc.geomyidae b/rc.d/rc.geomyidae
@@ -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