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:
Danilo
2022-04-10 01:06:39 +02:00
committed by Peter Korsgaard
parent 70f7599e59
commit 542df24db7
2 changed files with 18 additions and 0 deletions

View File

@@ -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))

View 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