diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-06-18 15:55:23 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-06-18 15:55:23 +0200 |
commit | 92e1dc5d8a46d0f48194d20fe32868b3a9519331 (patch) | |
tree | 5a47b5379c007af0afeb59e3a56ad918bdbb909b /etc | |
parent | 62f8a380c127f85c7a54b01ec1440349dbe67899 (diff) |
Fix init script status check.
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/miavd.in | 10 |
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 |