diff options
author | Miloslav Trmac <mitr@volny.cz> | 2006-03-27 14:23:43 +0000 |
---|---|---|
committer | Miloslav Trmac <mitr@volny.cz> | 2006-03-27 14:23:43 +0000 |
commit | eb3d6ab2aa6847ba10cc3086c36d1c3788945151 (patch) | |
tree | 300bbcdf177ad47f304ac793d710ab0447fe2241 /rc.d/init.d/functions | |
parent | 9b2bf404ff0594fc96c4b230a7b8d384afb14e65 (diff) | |
download | initscripts-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/functions')
-rwxr-xr-x | rc.d/init.d/functions | 2 |
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 } |