mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Small changes in mlvpn init
This commit is contained in:
parent
bb408f2542
commit
149c30129d
1 changed files with 3 additions and 3 deletions
|
@ -49,7 +49,7 @@ start_service() {
|
||||||
|
|
||||||
[ "${enable}" = "1" ] || return 1
|
[ "${enable}" = "1" ] || return 1
|
||||||
|
|
||||||
if [ "$(uci -q get network.omrvpn)" != "" ]; then
|
if [ "$(uci -q get network.omrvpn)" != "${interface_name}" ]; then
|
||||||
uci -q set network.omrvpn.ifname=${interface_name}
|
uci -q set network.omrvpn.ifname=${interface_name}
|
||||||
uci -q commit
|
uci -q commit
|
||||||
fi
|
fi
|
||||||
|
@ -74,8 +74,8 @@ start_service() {
|
||||||
procd_open_instance
|
procd_open_instance
|
||||||
procd_set_param command /usr/sbin/mlvpn --config "/tmp/etc/${interface_name}.conf" --user nobody
|
procd_set_param command /usr/sbin/mlvpn --config "/tmp/etc/${interface_name}.conf" --user nobody
|
||||||
procd_set_param file "/tmp/etc/${interface_name}.conf"
|
procd_set_param file "/tmp/etc/${interface_name}.conf"
|
||||||
procd_set_param reload_signal SIGHUP
|
#procd_set_param reload_signal SIGHUP
|
||||||
procd_set_param respawn
|
procd_set_param respawn 0 30 5
|
||||||
procd_close_instance
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue