aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/init.d
diff options
context:
space:
mode:
authorMiloslav Trmac <mitr@volny.cz>2006-03-27 14:23:43 +0000
committerMiloslav Trmac <mitr@volny.cz>2006-03-27 14:23:43 +0000
commiteb3d6ab2aa6847ba10cc3086c36d1c3788945151 (patch)
tree300bbcdf177ad47f304ac793d710ab0447fe2241 /rc.d/init.d
parent9b2bf404ff0594fc96c4b230a7b8d384afb14e65 (diff)
downloadinitscripts-eb3d6ab2aa6847ba10cc3086c36d1c3788945151.tar
initscripts-eb3d6ab2aa6847ba10cc3086c36d1c3788945151.tar.gz
initscripts-eb3d6ab2aa6847ba10cc3086c36d1c3788945151.tar.bz2
initscripts-eb3d6ab2aa6847ba10cc3086c36d1c3788945151.tar.xz
initscripts-eb3d6ab2aa6847ba10cc3086c36d1c3788945151.zip
(killproc): Respect -p when removing the pid file
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 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
}