]> git.pld-linux.org Git - projects/rc-scripts.git/commit
pidofproc: fix checking if pidfile was specified
authorKrzysztof Mazur <krzysiek@podlesie.net>
Sat, 21 Nov 2015 12:38:35 +0000 (13:38 +0100)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 23 Nov 2015 12:01:51 +0000 (14:01 +0200)
commitf9ce7907e3cde407b2f6b57993e6274012a69ea7
tree7a0ecd9d8862d16ef05f13ad113469c88bc192ac
parentfdcf237a2b213d99e2fe8995513e3d2effb8f017
pidofproc: fix checking if pidfile was specified

The commit 2ec0a78e657d8df42c4f3f23ee9a8d26a5acf1aa
(pidofproc: do not fallback, if pidfile was specified)
always disabled the fallback, not only if pidfile was specified.
If pidfile is not specified, the pidfile variable is still initialized
to "$base.pid", and is non-empty. Fix it by checking if the pidfile
argument is non-empty.
lib/functions
This page took 0.780575 seconds and 4 git commands to generate.