mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
netplug: systemd support
[Thomas: use relative symlink instead of absolute symlink.] 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
ea63dc42cd
commit
b8da356e5d
@ -23,4 +23,12 @@ define NETPLUG_INSTALL_INIT_SYSV
|
|||||||
$(TARGET_DIR)/etc/init.d/S29netplug
|
$(TARGET_DIR)/etc/init.d/S29netplug
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define NETPLUG_INSTALL_INIT_SYSTEMD
|
||||||
|
$(INSTALL) -D -m 644 package/netplug/netplug.service \
|
||||||
|
$(TARGET_DIR)/usr/lib/systemd/system/netplug.service
|
||||||
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||||
|
ln -sf ../../../../usr/lib/systemd/system/netplug.service \
|
||||||
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/netplug.service
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
10
package/netplug/netplug.service
Normal file
10
package/netplug/netplug.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Network cable hotplug management daemon
|
||||||
|
After=syslog.target network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/sbin/netplugd -F
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user