From 92e1dc5d8a46d0f48194d20fe32868b3a9519331 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Wed, 18 Jun 2014 15:55:23 +0200 Subject: Fix init script status check. --- etc/miavd.in | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'etc') 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 -- cgit v1.2.3