mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 22:11:59 -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>
(cherry picked from commit 4e5c1dbb22)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
@@ -131,4 +131,9 @@ else
|
|||||||
JANUS_GATEWAY_CONF_OPTS += --disable-systemd-sockets
|
JANUS_GATEWAY_CONF_OPTS += --disable-systemd-sockets
|
||||||
endif
|
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))
|
$(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