mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-01 23:47:42 +00:00
triggerhappy: systemd support
[Thomas: use a relative symbolic link.] 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
b7afea9500
commit
7ee5eb933d
@ -34,4 +34,12 @@ define TRIGGERHAPPY_INSTALL_INIT_SYSV
|
|||||||
$(TARGET_DIR)/etc/init.d/S10triggerhappy
|
$(TARGET_DIR)/etc/init.d/S10triggerhappy
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define TRIGGERHAPPY_INSTALL_INIT_SYSTEMD
|
||||||
|
$(INSTALL) -D -m 644 package/triggerhappy/triggerhappy.service \
|
||||||
|
$(TARGET_DIR)/usr/lib/systemd/system/triggerhappy.service
|
||||||
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
||||||
|
ln -sf ../../../../usr/lib/systemd/system/triggerhappy.service \
|
||||||
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/triggerhappy.service
|
||||||
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
9
package/triggerhappy/triggerhappy.service
Normal file
9
package/triggerhappy/triggerhappy.service
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Triggerhappy daemon
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/thd --triggers /etc/triggerhappy/triggers.d --socket /var/run/thd.socket --user nobody /dev/input/event*
|
||||||
|
Restart=always
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user