Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialise daemon on boot #62

Closed
mikesumbler opened this issue Nov 2, 2017 · 5 comments
Closed

Initialise daemon on boot #62

mikesumbler opened this issue Nov 2, 2017 · 5 comments

Comments

@mikesumbler
Copy link

Hi sorry to be stupid - how best would you recommend getting openpyn to run and start openvpn as a daemon. I have tried init.d script and crontab, neither work.
Thanks in advance.
Mike

@brubrant
Copy link

brubrant commented Nov 2, 2017

+1 (using Ubuntu here)

@jotyGill
Copy link
Owner

jotyGill commented Nov 2, 2017

No question is stupid, scratch that not true lol, but yours isn't. Up until now I haven't done anything to make it persistent through out boots. I am now making it work with systemd. With systemd we should be able to start/stop it, auto run at boot and check vpn status.

@mikesumbler
Copy link
Author

mikesumbler commented Nov 2, 2017 via email

@jotyGill
Copy link
Owner

jotyGill commented Nov 3, 2017

well for you mates, release date is today.
before the official release, I'll try and see if anything is broken. (You guys can help me out and test it with different config variations and OS's if you like).

Now during the --init it installs itself as a systemd service as well. And we get the benefit of dynamically changing that config file if you run openpyn with -d switch.
so if you feel like you want to change the country and some options in your openpyn.service you run.
'sudo openpyn au -p 5 -d' it will update it, reload systemd, (now also start openpyn ).

To Install

git clone --branch test https://github.com/jotyGill/openpyn-nordvpn.git
cd openpyn-nordvpn
sudo python3 setup.py install

@mikesumbler
Copy link
Author

Just installed - works perfectly. Many thanks Mike

@jotyGill jotyGill closed this as completed Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants