Skip to contentSkip to conversation

package/janus-gateway: Add systemd service file

PATCH Applied Danilo 3 participants 3 messages Apr 9, 2022 – May 18, 2022

lore
Share & tools
lore

Danilo

author
#0 lore raw

PATCH 1/1 package/janus-gateway: Add systemd service file

---
 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
package/janus-gateway/janus-gateway.mk +5 -0
index 84ca0bc116..381843a0af 100644
@@ -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))
package/janus-gateway/janus-gateway.service new file +13 -0
new file mode 100644
index 0000000000..6e6bc7f017
@@ -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
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw
Quoted 2 lines · Danilo

Applied to master, thanks.

Regards,
Arnout

Quoted 42 lines
---
  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

package/janus-gateway/janus-gateway.mk +5 -0
index 84ca0bc116..381843a0af 100644
@@ -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))
package/janus-gateway/janus-gateway.service new file +13 -1
new file mode 100644
index 0000000000..6e6bc7f017
@@ -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

Quoted 4 lines

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot