From: Alex Suykov Date: Sat, 23 May 2015 10:03:45 +0000 (+0300) Subject: inadyn: systemd support X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0719dd240f35c44967ea63f8ffd60734dfefb56a;p=buildroot.git inadyn: systemd support Signed-off-by: Alex Suykov Signed-off-by: Thomas Petazzoni --- 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