summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2012-02-14 14:44:34 +0100
committerKay Sievers <kay.sievers@vrfy.org>2012-02-14 14:44:34 +0100
commita82034ba58f0bce6289fd6e550f1433f97aa74ab (patch)
treedb91d42d7f264fe0aea6154de70e3acab4a9d6d9 /src
parent3840d318011a20960119ff8dff1f67825b2ca0f1 (diff)
update sd-daemon files
Diffstat (limited to 'src')
-rw-r--r--src/sd-daemon.c4
-rw-r--r--src/sd-daemon.h9
2 files changed, 11 insertions, 2 deletions
diff --git a/src/sd-daemon.c b/src/sd-daemon.c
index e68b70875c..763e079b4e 100644
--- a/src/sd-daemon.c
+++ b/src/sd-daemon.c
@@ -32,7 +32,11 @@
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/un.h>
+#ifdef __BIONIC__
+#include <linux/fcntl.h>
+#else
#include <sys/fcntl.h>
+#endif
#include <netinet/in.h>
#include <stdlib.h>
#include <errno.h>
diff --git a/src/sd-daemon.h b/src/sd-daemon.h
index 46dc7fd7e5..fe51159ee6 100644
--- a/src/sd-daemon.h
+++ b/src/sd-daemon.h
@@ -58,8 +58,8 @@ extern "C" {
You may find an up-to-date version of these source files online:
- http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.h
- http://cgit.freedesktop.org/systemd/plain/src/sd-daemon.c
+ http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-daemon.h
+ http://cgit.freedesktop.org/systemd/systemd/plain/src/sd-daemon.c
This should compile on non-Linux systems, too, but with the
exception of the sd_is_xxx() calls all functions will become NOPs.
@@ -217,6 +217,11 @@ int sd_is_mq(int fd, const char *path);
MAINPID=... The main pid of a daemon, in case systemd did not
fork off the process itself. Example: "MAINPID=4711"
+ WATCHDOG=1 Tells systemd to update the watchdog timestamp.
+ Services using this feature should do this in
+ regular intervals. A watchdog framework can use the
+ timestamps to detect failed services.
+
Daemons can choose to send additional variables. However, it is
recommended to prefix variable names not listed above with X_.