mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 00:04:06 -09:00
package/janus-gateway: Add systemd service file
Signed-off-by: Danilo Bargen <mail@dbrgn.ch> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
committed by
Arnout Vandecappelle (Essensium/Mind)
parent
f94ba5c31c
commit
4e5c1dbb22
@@ -131,4 +131,9 @@ else
|
||||
JANUS_GATEWAY_CONF_OPTS += --disable-systemd-sockets
|
||||
endif
|
||||
|
||||
define JANUS_GATEWAY_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/janus-gateway/janus-gateway.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/janus-gateway.service
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
13
package/janus-gateway/janus-gateway.service
Normal file
13
package/janus-gateway/janus-gateway.service
Normal file
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Janus WebRTC Gateway
|
||||
Wants=network.target
|
||||
StartLimitIntervalSec=0
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/janus
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user