diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-03-16 12:53:47 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-03-16 12:53:47 +0100 |
commit | a4b8729e6af299a3f2eb4fa676e93cfd85778521 (patch) | |
tree | 7d65ba6940b7cb1326104076eeff711b8b33e697 /vdr.c | |
parent | 687b93b2152b2ba82b0f828e543d4904c124bae2 (diff) | |
download | vdr-a4b8729e6af299a3f2eb4fa676e93cfd85778521.tar.gz vdr-a4b8729e6af299a3f2eb4fa676e93cfd85778521.tar.bz2 |
Added support for systemd2.1.6
Diffstat (limited to 'vdr.c')
-rw-r--r-- | vdr.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 3.10 2014/01/26 12:27:51 kls Exp $ + * $Id: vdr.c 3.11 2014/03/16 12:49:13 kls Exp $ */ #include <getopt.h> @@ -34,6 +34,9 @@ #include <stdlib.h> #include <sys/capability.h> #include <sys/prctl.h> +#ifdef SDNOTIFY +#include <systemd/sd-daemon.h> +#endif #include <termios.h> #include <unistd.h> #include "audio.h" @@ -845,6 +848,10 @@ int main(int argc, char *argv[]) alarm(WatchdogTimeout); // Initial watchdog timer start } +#ifdef SDNOTIFY + sd_notify(0, "READY=1"); +#endif + // Main program loop: #define DELETE_MENU ((IsInfoMenu &= (Menu == NULL)), delete Menu, Menu = NULL) |