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/functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions
index 26edffb3..b493fa6c 100755
--- a/rc.d/init.d/functions
+++ b/rc.d/init.d/functions
@@ -92,7 +92,7 @@ daemon() {
[ -z $gotbase ] && base=`basename $1`
# See if it's already running.
- pidlist=`pidofproc $base`
+ pidlist=`pidofproc $1`
pid=
for apid in $pidlist ; do
@@ -138,7 +138,7 @@ killproc() {
base=`basename $1`
# Find pid.
- pidlist=`pidofproc $base`
+ pidlist=`pidofproc $1`
pid=
for apid in $pidlist ; do