aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'rc.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 6638bcee..ca29b07b 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -250,7 +250,7 @@ killproc() {
# Remove pid file if any.
if [ -z "$killlevel" ]; then
- rm -f /var/run/$base.pid
+ rm -f "${pid_file:-/var/run/$base.pid}"
fi
return $RC
}