Signed-off-by: Danilo Bargen <mail@dbrgn.ch> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
@@ -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))
@@ -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