Lines 58-69
Link Here
|
58 |
eval server=\$server_${VPN} |
58 |
eval server=\$server_${VPN} |
59 |
eval vpnopts=\$vpnopts_${VPN} |
59 |
eval vpnopts=\$vpnopts_${VPN} |
60 |
eval password=\$password_${VPN} |
60 |
eval password=\$password_${VPN} |
|
|
61 |
eval authgroup=\$authgroup_${VPN} |
61 |
|
62 |
|
62 |
ebegin "Starting ${name}" |
63 |
ebegin "Starting ${name}" |
63 |
start-stop-daemon --start --exec "${command}" -- \ |
64 |
start-stop-daemon --start --exec "${command}" -- \ |
64 |
--background \ |
65 |
--background \ |
65 |
--interface="${VPN}" \ |
66 |
--interface="${VPN}" \ |
66 |
--pid-file="${pidfile}" \ |
67 |
--pid-file="${pidfile}" \ |
|
|
68 |
${authgroup+--authgroup="$authgroup"} \ |
67 |
${vpnopts} \ |
69 |
${vpnopts} \ |
68 |
"${server}" \ |
70 |
"${server}" \ |
69 |
>> "${VPNLOGFILE}" \ |
71 |
>> "${VPNLOGFILE}" \ |