Warn about pidfiles not being created.
This commit is contained in:
parent
7683c5056a
commit
82f7dae3e8
@ -1049,9 +1049,12 @@ int start_stop_daemon (int argc, char **argv)
|
||||
} else {
|
||||
if (pidfile) {
|
||||
/* The pidfile may not have been written yet - give it some time */
|
||||
if (get_pid (pidfile, true) == -1)
|
||||
if (get_pid (pidfile, true) == -1) {
|
||||
if (! nloopsp)
|
||||
eerrorx ("%s: did not create a valid pid in `%s'",
|
||||
applet, pidfile);
|
||||
alive = true;
|
||||
else
|
||||
} else
|
||||
nloopsp = 0;
|
||||
}
|
||||
if (do_stop (exec, cmd, pidfile, uid, 0, true, false, true) > 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user