summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-09-30 16:55:25 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-09-30 16:55:25 -0500
commit56d592866c7734c42c0b2c0a41376e299fa3a0c2 (patch)
tree218cba6c2c6580d7bbba4913b4445845180d234b
parent993e7d704404a8ff1a355bf4a38d1d92e7cc56cd (diff)
downloadopenrc-56d592866c7734c42c0b2c0a41376e299fa3a0c2.tar.gz
openrc-56d592866c7734c42c0b2c0a41376e299fa3a0c2.tar.bz2
openrc-56d592866c7734c42c0b2c0a41376e299fa3a0c2.tar.xz
start-stop-daemon: fix eerorr calls in get_pid
The eerror calls in this function make it too verbose, so change them to ewarnv() calls instead. This means that they will only print if the --verbose option is used or EINFO_VERBOSE=yes is set in the environment.
-rw-r--r--src/rc/start-stop-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c
index 3a72a13..cceb041 100644
--- a/src/rc/start-stop-daemon.c
+++ b/src/rc/start-stop-daemon.c
@@ -316,12 +316,12 @@ get_pid(const char *pidfile)
return -1;
if ((fp = fopen(pidfile, "r")) == NULL) {
- eerror("%s: fopen `%s': %s", applet, pidfile, strerror(errno));
+ ewarnv("%s: fopen `%s': %s", applet, pidfile, strerror(errno));
return -1;
}
if (fscanf(fp, "%d", &pid) != 1) {
- eerror("%s: no pid found in `%s'", applet, pidfile);
+ ewarnv("%s: no pid found in `%s'", applet, pidfile);
fclose(fp);
return -1;
}