diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2020-11-05 16:15:03 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2020-11-06 12:08:59 +0000 |
commit | 62e6d02344a274cbee525fee202edc9a191c02da (patch) | |
tree | 5f2e2c18b3be73908dd44343a2707cad5360b2e4 /testing/rtpengine/rtpengine.initd | |
parent | 56c77a437dfe57d14f4354795b826a0acb6e6d17 (diff) |
testing/rtpengine: new aport
Proxy for RTP traffic and other UDP based media traffic
Diffstat (limited to 'testing/rtpengine/rtpengine.initd')
-rwxr-xr-x | testing/rtpengine/rtpengine.initd | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/rtpengine/rtpengine.initd b/testing/rtpengine/rtpengine.initd new file mode 100755 index 00000000000..0c56aaf315d --- /dev/null +++ b/testing/rtpengine/rtpengine.initd @@ -0,0 +1,17 @@ +#!/sbin/openrc-run + +command="/usr/bin/${RC_SVCNAME}" +command_args="--foreground --config-file /etc/rtpengine/${RC_SVCNAME}.conf" +command_background="yes" +: ${command_user:="rtpengine:rtpengine"} +pidfile="/run/rtpengine/${RC_SVCNAME}.pid" + +depend() { + need net + after firewall + use kamailio +} + +start_pre() { + checkpath --directory --owner "$command_user" /run/rtpengine +} |