]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - lib/functions
pidofproc: fix checking if pidfile was specified
[projects/rc-scripts.git] / lib / functions
index 8d018f7120497e270050e861c80ba3dbf4613b2b..501cac9fc1e5e34cac1a5ff62c19f6f3536a4955 100644 (file)
@@ -1009,7 +1009,7 @@ pidofproc() {
        fi
 
        # Next try "pidof" if pidfile is not specified
-       if [ -z "$pid" ] && [ -z "$pidfile" ]; then
+       if [ -z "$pid" ] && [ -z "$2" ]; then
                pid=$(pidof -o $$ -o $PPID -o %PPID -x "$1")
        fi
 
This page took 0.049266 seconds and 4 git commands to generate.