mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 07:57:43 +00:00
olsr: 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
3e20a60566
commit
b39faff8c5
@ -40,4 +40,12 @@ define OLSR_INSTALL_INIT_SYSV
|
|||||||
$(TARGET_DIR)/etc/init.d/S50olsr
|
$(TARGET_DIR)/etc/init.d/S50olsr
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define OLSR_INSTALL_INIT_SYSTEMD
|
||||||
|
$(INSTALL) -D -m 644 package/olsr/olsr.service \
|
||||||
|
$(TARGET_DIR)/usr/lib/systemd/system/olsr.service
|
||||||
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||||
|
ln -sf ../../../../usr/lib/systemd/system/olsr.service \
|
||||||
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/olsr.service
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
10
package/olsr/olsr.service
Normal file
10
package/olsr/olsr.service
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Ad-hoc wireless mesh routing daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/olsrd -nofork
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user