ubuntu serivce packages 02-27-2019, 02:36 AM
#1
I am trying to set up a service back in the systemd directory in xubuntu to start protonvpn on boot and I am having some trouble.
here is the service file.
I had also set it up where the service file was calling a python file that was calling a shell file which started the protonvpn software. Clearly that is not an ideal way to do it, and either way even giving all the relevant file root permissions and setting the user in the service file to root it wouldn't run.
This service file I got off of the internet for someone else who said it worked for them, but they disable comments on their blog.
Can anyone point me in the direction of a good tutorial on creating this type of service file. I've found a lot of basic tutorials, but I feel like when you are dealing with networking there is something I am not getting.
Code:
[Unit]
Description=ProtonVPN CLI Auto-Start
After=network.target
[Service]
Type=forking
User=root
ExecStart=/usr/local/bin/protonvpn-cli --last-connect
ExecReload=/usr/local/bin/protonvpn-cli --disconnect && /usr/local/bin/protonvpn-cli --last-connect
ExecStop=/usr/local/bin/protonvpn-cli --disconnect
Restart=always
[Install]
WantedBy=multi-user.targethere is the service file.
I had also set it up where the service file was calling a python file that was calling a shell file which started the protonvpn software. Clearly that is not an ideal way to do it, and either way even giving all the relevant file root permissions and setting the user in the service file to root it wouldn't run.
This service file I got off of the internet for someone else who said it worked for them, but they disable comments on their blog.
Can anyone point me in the direction of a good tutorial on creating this type of service file. I've found a lot of basic tutorials, but I feel like when you are dealing with networking there is something I am not getting.


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)














