Added group setting for start-stop-daemon in order to use iptables owner marks
This commit is contained in:
parent
ec713dd6b5
commit
890ffc77fd
@ -3,6 +3,7 @@ config broker
|
|||||||
list address 'x.y.z.w:53'
|
list address 'x.y.z.w:53'
|
||||||
list address 'x.y.z.w:123'
|
list address 'x.y.z.w:123'
|
||||||
option uuid 'abcd'
|
option uuid 'abcd'
|
||||||
|
option group 'root'
|
||||||
option interface 'l2tp0'
|
option interface 'l2tp0'
|
||||||
option limit_bw_down '1024'
|
option limit_bw_down '1024'
|
||||||
option enabled '0'
|
option enabled '0'
|
||||||
|
@ -20,6 +20,7 @@ config_cb() {
|
|||||||
config_get addresses "$cfg" address
|
config_get addresses "$cfg" address
|
||||||
config_get uuid "$cfg" uuid
|
config_get uuid "$cfg" uuid
|
||||||
config_get interface "$cfg" interface
|
config_get interface "$cfg" interface
|
||||||
|
config_get group "$cfg" group
|
||||||
config_get limit_bw_down "$cfg" limit_bw_down
|
config_get limit_bw_down "$cfg" limit_bw_down
|
||||||
config_get hook_script "$cfg" hook_script
|
config_get hook_script "$cfg" hook_script
|
||||||
config_get bind_interface "$cfg" bind_interface
|
config_get bind_interface "$cfg" bind_interface
|
||||||
@ -49,7 +50,7 @@ config_cb() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Starting tunneldigger on ${interface}"
|
echo "Starting tunneldigger on ${interface}"
|
||||||
/sbin/start-stop-daemon -S -q -b -m -p ${PIDPATH}/tunneldigger.${interface}.pid -x /usr/bin/tunneldigger -- -u ${uuid} -i ${interface} -t ${tunnel_id} ${broker_opts}
|
/sbin/start-stop-daemon -S -q -b -m -c root:${group} -p ${PIDPATH}/tunneldigger.${interface}.pid -x /usr/bin/tunneldigger -- -u ${uuid} -i ${interface} -t ${tunnel_id} ${broker_opts}
|
||||||
|
|
||||||
let tunnel_id++
|
let tunnel_id++
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user