mirror of
https://git.busybox.net/buildroot.git
synced 2024-12-04 19:03:28 +08:00
package/janus-gateway: Add systemd service file
Signed-off-by: Danilo Bargen <mail@dbrgn.ch> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
parent
f94ba5c31c
commit
4e5c1dbb22
@ -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))
|
||||
|
13
package/janus-gateway/janus-gateway.service
Normal file
13
package/janus-gateway/janus-gateway.service
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user