summaryrefslogtreecommitdiff
path: root/network/geomyidae
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2017-11-26 08:30:55 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-12-02 06:30:49 +0700
commitd0b12203a18f60cf53ac480090deff877f4d9551 (patch)
tree59491aefe6c524a2009b02e7d9394e340e2a553a /network/geomyidae
parent992ce79a42e33f253ec4f8c27330372f4d505cdc (diff)
downloadslackbuilds-d0b12203a18f60cf53ac480090deff877f4d9551.tar.gz
network/geomyidae: Fix rc script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/geomyidae')
-rw-r--r--network/geomyidae/geomyidae.SlackBuild2
-rw-r--r--network/geomyidae/rc.geomyidae.new13
2 files changed, 8 insertions, 7 deletions
diff --git a/network/geomyidae/geomyidae.SlackBuild b/network/geomyidae/geomyidae.SlackBuild
index d33dd363c5..eef9db6bd2 100644
--- a/network/geomyidae/geomyidae.SlackBuild
+++ b/network/geomyidae/geomyidae.SlackBuild
@@ -23,7 +23,7 @@
PRGNAM=geomyidae
VERSION=${VERSION:-git20171114}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
diff --git a/network/geomyidae/rc.geomyidae.new b/network/geomyidae/rc.geomyidae.new
index 34c2c75317..38c02f8be1 100644
--- a/network/geomyidae/rc.geomyidae.new
+++ b/network/geomyidae/rc.geomyidae.new
@@ -1,20 +1,21 @@
#!/bin/sh
-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)