From: Danilo <mail@dbrgn.ch>
To: buildroot@buildroot.org
Cc: Gregory Dymarek <gregd72002@gmail.com>
Subject: [Buildroot] [PATCH 1/1] package/janus-gateway: Add systemd service file
Date: Sun, 10 Apr 2022 01:06:39 +0200 [thread overview]
Message-ID: <20220410010640.1fdc8ada@c3po> (raw)
Signed-off-by: Danilo Bargen <mail@dbrgn.ch>
---
package/janus-gateway/janus-gateway.mk | 5 +++++
package/janus-gateway/janus-gateway.service | 13 +++++++++++++
2 files changed, 18 insertions(+)
create mode 100644 package/janus-gateway/janus-gateway.service
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
--
2.35.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2022-04-09 23:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-09 23:06 Danilo [this message]
2022-04-14 20:05 ` [Buildroot] [PATCH 1/1] package/janus-gateway: Add systemd service file Arnout Vandecappelle
2022-05-18 12:12 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220410010640.1fdc8ada@c3po \
--to=mail@dbrgn.ch \
--cc=buildroot@buildroot.org \
--cc=gregd72002@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox