geomyidae

A small C-based gopherd. (gopher://bitreich.org/1/scm/geomyidae)
git clone git://r-36.net/geomyidae
Log | Files | Refs | README | LICENSE

commit b5deb9c4f2c6c495d553fa22bd16e743848e2de6
parent 8a45db6e405745c2787614b7a741655f0889e66f
Author: Slackhead <slackhead@gmail.com>
Date:   Sat, 25 Nov 2017 18:00:12 +0000

Update Slackware startup script: rc.geomyidae

Signed-off-by: Christoph Lohmann <20h@r-36.net>

Diffstat:
rc.d/rc.geomyidae | 16+++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/rc.d/rc.geomyidae b/rc.d/rc.geomyidae @@ -1,23 +1,21 @@ #!/bin/sh -# rc file for Slackware Linux. -# This lives in /ect/rc.d/ - -PID=$(pidof -o %PPID /usr/bin/geomyidae) +# Array of all PIDS +PID=($(pidof -o %PPID /usr/bin/geomyidae)) case "$1" in start) echo "Starting geomyidae" - [ -z "$PID" ] && /usr/bin/geomyidae $GEOMYIDAE_ARGS 2>&1 + /usr/bin/geomyidae $GEOMYIDAE_ARGS 2>&1 if [ $? -gt 0 ]; then echo "Startup failed" fi ;; stop) - echo "Stopping geomyidae" - [ -n "$PID" ] && kill $PID &>/dev/null - if [ $? -gt 0 ]; then - echo "Stopping failed" + echo "Stopping all geomyidae processes" + [ -n "$PID" ] && kill ${PID[@]} &>/dev/null + if [ $? -gt 0 ] && [ -n "$PID" ]; then + echo "Stopping failed for at least one process" fi ;; restart)