mirror of
https://github.com/oxen-io/lokinet
synced 2023-12-14 06:53:00 +01:00
Restore DNS via signal handler
If we get signalled we still want to run it, but a signal on the script could result in us exiting early.
This commit is contained in:
parent
04bba0f415
commit
d48a54363d
|
@ -39,7 +39,7 @@ fi
|
|||
|
||||
networksetup -setdnsservers "$SERVICE_NAME" 127.0.0.1
|
||||
|
||||
trap "networksetup -setdnsservers \"$SERVICE_NAME\" $OLD_SERVERS" INT TERM EXIT
|
||||
|
||||
/opt/lokinet/bin/lokinet /var/lib/lokinet/lokinet.ini
|
||||
|
||||
networksetup -setdnsservers "$SERVICE_NAME" $OLD_SERVERS
|
||||
|
||||
|
|
Loading…
Reference in a new issue