1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Update mlvpn and fix init script

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-09-10 21:02:09 +02:00
parent 5c68e7063a
commit f15e1845e8
2 changed files with 8 additions and 9 deletions

View file

@ -40,7 +40,7 @@ interface_multipath_settings() {
EOF
}
start_service() {
start() {
local enable timeout mode password reorder_buffer_size interface_name host firstport loss_tolerence
validate_section "general" || {
_err "validation failed"
@ -72,12 +72,11 @@ start_service() {
config_foreach interface_multipath_settings interface
chmod 0600 "/tmp/etc/${interface_name}.conf"
procd_open_instance
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 reload_signal SIGHUP
procd_set_param respawn 0 30 5
procd_close_instance
service_start /usr/sbin/mlvpn --config "/tmp/etc/${interface_name}.conf" --user nobody
}
stop() {
killall mlvpn
}
service_triggers() {