aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/start-stop-daemon.c7
1 files 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)