Warn about pidfiles not being created.

This commit is contained in:
Roy Marples 2007-12-03 13:38:23 +00:00
parent 7683c5056a
commit 82f7dae3e8

View File

@ -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)