chiark / gitweb /
update sd-daemon files
authorKay Sievers <kay.sievers@vrfy.org>
Tue, 14 Feb 2012 13:44:34 +0000 (14:44 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Tue, 14 Feb 2012 13:44:34 +0000 (14:44 +0100)
src/sd-daemon.c
src/sd-daemon.h

index e68b70875c749a22dcbbfc6d7338d2c848f3a317..763e079b4ec0ac7cfa9bda49341e29a0672f2e87 100644 (file)
 #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>
index 46dc7fd7e596a3f40c9d03d486e70ece67bab7b3..fe51159ee64c12aef8732d9e716e20de12e0c302 100644 (file)
@@ -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_.