diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:21:30 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-01-03 15:22:00 +0000 |
commit | aac5a520b4c43578618ca98b179fb53831a1f650 (patch) | |
tree | c82131f823b2c9506bafed193a90c20a8c37c94b /testing/spreed-webrtc/spreed-webrtc.initd | |
parent | 2d3b16b0cd222689d4c7c40b48dff28d3d8c366f (diff) | |
download | aports-aac5a520b4c43578618ca98b179fb53831a1f650.tar.bz2 aports-aac5a520b4c43578618ca98b179fb53831a1f650.tar.xz |
testing/spreed-webrtc: new aport
WebRTC audio/video call and conferencing server
Diffstat (limited to 'testing/spreed-webrtc/spreed-webrtc.initd')
-rw-r--r-- | testing/spreed-webrtc/spreed-webrtc.initd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testing/spreed-webrtc/spreed-webrtc.initd b/testing/spreed-webrtc/spreed-webrtc.initd new file mode 100644 index 0000000000..5ab0efd22b --- /dev/null +++ b/testing/spreed-webrtc/spreed-webrtc.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run + +command=/usr/sbin/spreed-webrtc-server +pidfile=/var/run/spreed-webrtc/${SVCNAME}.pid +conf=/etc/spreed-webrtc/${SVCNAME}.conf +logfile=/var/log/spreed-webrtc/spreed-webrtc-server.log + +: ${exec_user:=spreed} +: ${exec_group:=spreed} + +start_stop_daemon_args="--user $exec_user --group $exec_group --background --make-pidfile" + +depend() { + need net + after firewall +} + +start_pre() { + checkpath --directory ${pidfile%/*} --owner ${exec_user}:${exec_group} + command_args="-c $conf -l $logfile" +} |