From 4e5c1dbb22bdd0e1daf9302ddc5ac7c89c461b05 Mon Sep 17 00:00:00 2001 From: Danilo Date: Sun, 10 Apr 2022 01:06:39 +0200 Subject: [PATCH] package/janus-gateway: Add systemd service file Signed-off-by: Danilo Bargen Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- 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