add option to set the group owning /proc/rtpengine

pull/178/head
Camille Oudot 10 years ago
parent 88ce85e5af
commit 6f6a70392d

@ -182,7 +182,13 @@ start() {
rmmod xt_RTPENGINE 2> /dev/null
if [[ -n "$RE_USER" ]]
then
modprobe xt_RTPENGINE set_proc_id=1 proc_uid=$(id $RE_USER -u) proc_gid=$(id $RE_USER -g)
if [[ -n "$RE_GROUP" ]]
then
proc_gid=$(grep ^$RE_GROUP: /etc/group | cut -f3 -d:)
else
proc_gid=$(id $RE_USER -g)
fi
modprobe xt_RTPENGINE proc_uid=$(id $RE_USER -u) proc_gid=$proc_gid
else
modprobe xt_RTPENGINE
fi

@ -42,3 +42,5 @@ LISTEN_UDP=127.0.0.1:2222 # IP address and port combination for UDP
#B2B_URL=http://127.0.0.1:8080/xmlrpc
#RE_USER=rtpengine # Run rtpengine as this specific user
#RE_GROUP=rtpengine # allow this group to control rtpengine in kernel mode

Loading…
Cancel
Save