Login Register






ubuntu serivce packages filter_list
Author
Message
ubuntu serivce packages #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.

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.target

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.

Reply

RE: ubuntu serivce packages #2
https://access.redhat.com/documentation/...figuration

I am reading through this book. Starting on the service packages and going from there.

Reply

RE: ubuntu serivce packages #3
Here's your main problem that basically explains everything: You're using Ubuntu.
Good luck

Reply

RE: ubuntu serivce packages #4
(02-27-2019, 02:36 AM)plasticbeach Wrote: 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.

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.target

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.

that file is from a different Linux distro.
My IT skills that I know perfect is SQL, HTML ,css ,wordpress, PHP.
coding skills that I know is Java, JavaScript and C#

Reply

RE: ubuntu serivce packages #5
(03-02-2019, 02:04 PM)Kludge Wrote: Here's your main problem that basically explains everything: You're using Ubuntu.
Good luck
^ This is not helpful, if you don't know then don't reply.

To launch a script at startup put it in your /etc/init.d/ directory,
Code:
sudo nano /etc/init.d/yourscript.sh
Put whatever you want to run on startup in there, or set it to launch another script in /home/[yourusername]/boot.sh and put what you want there for easy access.
mark it as executable
Code:
sudo chmod +x /etc/init.d/yourscript.sh
(Along with the one in your home dir if you chose that route)

Reply

RE: ubuntu serivce packages #6
(04-21-2019, 08:55 PM)eClaire Wrote:
(03-02-2019, 02:04 PM)Kludge Wrote: Here's your main problem that basically explains everything: You're using Ubuntu.
Good luck
^ This is not helpful, if you don't know then don't reply.

To launch a script at startup put it in your /etc/init.d/ directory,
Code:
sudo nano /etc/init.d/yourscript.sh
Put whatever you want to run on startup in there, or set it to launch another script in /home/[yourusername]/boot.sh and put what you want there for easy access.
mark it as executable
Code:
sudo chmod +x /etc/init.d/yourscript.sh
(Along with the one in your home dir if you chose that route)

I'd consider it fantastic advice. There are *NIX/Debian builds all over the place that blast the crap out of Ubuntu in matters of performance, and just about everything else. Ubuntu is for learning the most basic of BASH but otherwise running a Windows like OS.

Reply

RE: ubuntu serivce packages #7
(04-21-2019, 11:23 PM)Kludge Wrote: I'd consider it fantastic advice. There are *NIX/Debian builds all over the place that blast the crap out of Ubuntu in matters of performance, and just about everything else. Ubuntu is for learning the most basic of BASH but otherwise running a Windows like OS.
Found the arch user

Reply