inadyn: systemd support
Signed-off-by: Alex Suykov <alex.suykov@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
b52d96ab4e
commit
0719dd240f
@ -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))
|
||||
|
10
package/inadyn/inadyn.service
Normal file
10
package/inadyn/inadyn.service
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user