aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/init.d')
-rwxr-xr-xrc.d/init.d/functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index e2dfc5f2..a5a022d8 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -161,7 +161,7 @@ daemon() {
[ -z "$gotbase" ] && base=${1##*/}
# See if it's already running. Look *only* at the pid file.
- __pids_var_run "$1" "$pid_file"
+ __pids_var_run "$base" "$pid_file"
[ -n "$pid" -a -z "$force" ] && return