From 82f7dae3e81a4054464bee42b49f1d872c7ca63d Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 3 Dec 2007 13:38:23 +0000 Subject: Warn about pidfiles not being created. --- src/start-stop-daemon.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/start-stop-daemon.c b/src/start-stop-daemon.c index 26ad8bd6..989a6e20 100644 --- a/src/start-stop-daemon.c +++ b/src/start-stop-daemon.c @@ -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) -- cgit v1.2.3