summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2014-06-18 15:55:23 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2014-06-18 15:55:23 +0200
commit92e1dc5d8a46d0f48194d20fe32868b3a9519331 (patch)
tree5a47b5379c007af0afeb59e3a56ad918bdbb909b /etc
parent62f8a380c127f85c7a54b01ec1440349dbe67899 (diff)
Fix init script status check.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/miavd.in10
1 files changed, 3 insertions, 7 deletions
diff --git a/etc/miavd.in b/etc/miavd.in
index fb7c462..abad632 100755
--- a/etc/miavd.in
+++ b/etc/miavd.in
@@ -50,12 +50,6 @@ start() {
return $RETVAL
}
-status() {
- [ -f $lockfile ] || return 3
- status -p ${_PID} miavd
- status miavd
-}
-
stop() {
echo -n $"$prog: Stopping miav server: "
if [ ! -f $lockfile ]
@@ -88,7 +82,9 @@ case "$1" in
stop
;;
status)
- status miavd
+ [ -f $lockfile ] || return 3
+ [ -f ${_PID} ] || return 3
+ status -p ${_PID} miavd
;;
restart|force-reload)
stop