summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-12-03 13:38:23 +0000
committerRoy Marples <roy@marples.name>2007-12-03 13:38:23 +0000
commit82f7dae3e81a4054464bee42b49f1d872c7ca63d (patch)
tree8bc940b84c6e4321998aac9f2198775260a190d2 /src
parent7683c5056a74ce4074940c3f96ad2db1bcf624ed (diff)
downloadopenrc-82f7dae3e81a4054464bee42b49f1d872c7ca63d.tar.gz
openrc-82f7dae3e81a4054464bee42b49f1d872c7ca63d.tar.bz2
openrc-82f7dae3e81a4054464bee42b49f1d872c7ca63d.tar.xz
Warn about pidfiles not being created.
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 26ad8bd..989a6e2 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)