All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit branch/2022.02.x] package/janus-gateway: Add systemd service file
@ 2022-05-18 12:11 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2022-05-18 12:11 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=542df24db7f5eed5be0514451df725a3fdd90db6
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x

Signed-off-by: Danilo Bargen <mail@dbrgn.ch>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit 4e5c1dbb22bdd0e1daf9302ddc5ac7c89c461b05)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/janus-gateway/janus-gateway.mk      |  5 +++++
 package/janus-gateway/janus-gateway.service | 13 +++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/package/janus-gateway/janus-gateway.mk b/package/janus-gateway/janus-gateway.mk
index 84ca0bc116..381843a0af 100644
--- a/package/janus-gateway/janus-gateway.mk
+++ b/package/janus-gateway/janus-gateway.mk
@@ -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))
diff --git a/package/janus-gateway/janus-gateway.service b/package/janus-gateway/janus-gateway.service
new file mode 100644
index 0000000000..6e6bc7f017
--- /dev/null
+++ b/package/janus-gateway/janus-gateway.service
@@ -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
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-18 12:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-18 12:11 [Buildroot] [git commit branch/2022.02.x] package/janus-gateway: Add systemd service file Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.