openpyn-nordvpn
openpyn-nordvpn copied to clipboard
OpenWRT: default log_folder is erased at reboot because /var -> /tmp
Thank you so much for this package, it's awesome!
In OpenWRT, /var is a symlink to /tmp. As a result, after reboot, openpyn.openpyn.run() stops at os.path.exists(log_folder), and one needs to either manually recreate the log dir or re-init. The openpyn's test
branch appears to store logs in $HOME instead of /var. Patience will solve this issue. In the meantime, I'm changing the default log_folder to a different path.
Note to OpenWRT users: it's tempting to make /var a directory, so that it survives across reboots. Unfortunately, this solution appears unwise (even if you can afford the extra storage), because several OpenWRT packages use /var/run and /tmp/run interchangeably, and assume they point to the same location.
Please use the test branch especially for OpenWRT, it contains the latest code!!
Please try openpyn 3.0.0!