Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


How do I get my VPN-daemon to run in the background? filter_list
Author
Message
How do I get my VPN-daemon to run in the background? #1
I have a VPN but every time I start my computer, I first have to run a VPN-daemon in terminal by starting it manually. I wonder if there is any way that I can have this process run as a background process automatically when I start my computer? A docker daemon? Is it called that?

Thankful for help and advice. Smile

Reply

RE: How do I get my VPN-daemon to run in the background? #2
https://github.com/adrienverge/openfortivpn/issues/594
https://askubuntu.com/questions/868088/h...n-a-script
(This post was last modified: 05-01-2021, 04:53 PM by piotro1410.)

Reply

RE: How do I get my VPN-daemon to run in the background? #3
Which VPN are you referring to, and what OS are you specifically running?
[Image: AD83g1A.png]

Reply

RE: How do I get my VPN-daemon to run in the background? #4
(05-01-2021, 04:51 PM)mothered Wrote: Which VPN are you referring to, and what OS are you specifically running?

Blackarch, Mullvad VPN.

Reply

RE: How do I get my VPN-daemon to run in the background? #5
(05-02-2021, 03:34 PM)poi$on ivy Wrote: Blackarch, Mullvad VPN.
Does the VPN Itself have a toggle button to enable the "Launch app on start-up" setting?
[Image: AD83g1A.png]

Reply

RE: How do I get my VPN-daemon to run in the background? #6
(05-02-2021, 04:54 PM)mothered Wrote:
(05-02-2021, 03:34 PM)poi$on ivy Wrote: Blackarch, Mullvad VPN.
Does the VPN Itself have a toggle button to enable the "Launch app on start-up" setting?
Yeah. Does that have anything to do with the VPN-daemon tho?

Reply

RE: How do I get my VPN-daemon to run in the background? #7
(05-02-2021, 03:34 PM)poi$on ivy Wrote:
(05-01-2021, 04:51 PM)mothered Wrote: Which VPN are you referring to, and what OS are you specifically running?

Blackarch, Mullvad VPN.

If you’ve properly configured it, you can enable the daemon using systemctl if you’re using systemd as pid 1.

Code:
sudo systemctl enable mullvad.service

That’s assuming proper configuration, of course. Refer to the arch wiki page for mullvad for more information or configuration.

https://wiki.archlinux.org/title/Mullvad#Using_systemd

If you’re on blackarch the chances are you’re using systemd as pid 1 since it’s arch based.
[Image: BXqGARG.png]

[+] 1 user Likes Equinox's post
Reply

RE: How do I get my VPN-daemon to run in the background? #8
(05-02-2021, 07:07 PM)poi$on ivy Wrote: Yeah. Does that have anything to do with the VPN-daemon tho?
@"Equinox" has you covered.

Please reply whether It's fixed the Issue.
[Image: AD83g1A.png]

Reply

RE: How do I get my VPN-daemon to run in the background? #9
(05-02-2021, 09:55 PM)Equinox Wrote:
(05-02-2021, 03:34 PM)poi$on ivy Wrote:
(05-01-2021, 04:51 PM)mothered Wrote: Which VPN are you referring to, and what OS are you specifically running?

Blackarch, Mullvad VPN.

If you’ve properly configured it, you can enable the daemon using systemctl if you’re using systemd as pid 1.

Code:
sudo systemctl enable mullvad.service

That’s assuming proper configuration, of course. Refer to the arch wiki page for mullvad for more information or configuration.

https://wiki.archlinux.org/title/Mullvad#Using_systemd

If you’re on blackarch the chances are you’re using systemd as pid 1 since it’s arch based.

I tried exactly that command, but itdidnt work. And it said "systemctl mullvadVPN-service does not exist" or something. Also, I currently have to run the daemon in a terminal window manually, and restart it every time I close the lid. And if I dont have the daemon + VPN running, the internet isnt going to work. And I want to have it running all the time, connect automatically etc. But its the daemon I have to get running. I'll try that command later Smile

Reply

RE: How do I get my VPN-daemon to run in the background? #10
(05-03-2021, 11:11 AM)poi$on ivy Wrote: And I want to have it running all the time, connect automatically etc. But its the daemon I have to get running. I'll try that command later Smile

The command I gave you is what enables the daemon. Since it says the service doesn’t exist though, you haven’t created it. You need to create the service unit for systemd to find, and target a specific runtime.

Another unit target could also be mullvad-daemon, so try that too

Code:
sudo systemctl enable mullvad-daemon
(This post was last modified: 05-03-2021, 02:49 PM by Equinox.)
[Image: BXqGARG.png]

Reply







Users browsing this thread: 2 Guest(s)