From 0719dd240f35c44967ea63f8ffd60734dfefb56a Mon Sep 17 00:00:00 2001 From: Alex Suykov Date: Sat, 23 May 2015 13:03:45 +0300 Subject: [PATCH] inadyn: systemd support Signed-off-by: Alex Suykov Signed-off-by: Thomas Petazzoni --- package/inadyn/inadyn.mk | 8 ++++++++ package/inadyn/inadyn.service | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 package/inadyn/inadyn.service diff --git a/package/inadyn/inadyn.mk b/package/inadyn/inadyn.mk index b002f94e8d..5c3b0e3b55 100644 --- a/package/inadyn/inadyn.mk +++ b/package/inadyn/inadyn.mk @@ -30,4 +30,12 @@ define INADYN_INSTALL_INIT_SYSV $(TARGET_DIR)/etc/init.d/S70inadyn endef +define INADYN_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 644 package/inadyn/inadyn.service \ + $(TARGET_DIR)/usr/lib/systemd/system/inadyn.service + mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants + ln -sf /usr/lib/systemd/system/inadyn.service \ + $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/inadyn.service +endef + $(eval $(autotools-package)) diff --git a/package/inadyn/inadyn.service b/package/inadyn/inadyn.service new file mode 100644 index 0000000000..abc0a1e401 --- /dev/null +++ b/package/inadyn/inadyn.service @@ -0,0 +1,10 @@ +[Unit] +Description=DDNS client +After=syslog.target network.target + +[Service] +ExecStart=/usr/bin/inadyn +Restart=always + +[Install] +WantedBy=multi-user.target -- 2.30.2