pidofproc(): Make sure to try /bin/pidof when no pidfile is specified.
authorDidier Raboud <odyx@debian.org>
Mon, 16 Apr 2012 08:09:09 +0000 (10:09 +0200)
committerDidier Raboud <odyx@debian.org>
Tue, 17 Apr 2012 09:56:22 +0000 (11:56 +0200)
commitce97bdb3110752749c2431e5fe930b56f94dbcef
tree2cd4319d19d07ce073e84e6480e485f61da1d0d7
parentd62560211aaab0094333072d494b2f5b82f09031
pidofproc(): Make sure to try /bin/pidof when no pidfile is specified.

Move the pidof-using block inside the conditional to have it run when we know
that the pidfile doesn't exist but before assuming that the program was indeed
using one.

Closes: #668958
Reported-by: Adrian Fita <adrian.fita@gmail.com>
Signed-off-by: Didier Raboud <odyx@debian.org>
init-functions