Confused about dietpi-process_tool

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply

Confused about dietpi-process_tool

Post by odreezy »

I'm trying to:
* only start openvpn client at boot
* disable openvpn server at boot

Seems easy, but I'm keeping tripped up on a few things.

First, dietpi-process_tool (what is it's purpose?), I can't remove OpenVPN Server.


Code: Select all

systemctl | ag 'openvpn'

openvpn.service            loaded active exited    OpenVPN service
openvpn@server.service     loaded active running   OpenVPN connection to server
system-openvpn.slice       loaded active active    system-openvpn.slice
Also, after I boot, I see two processes:
ps aux | ag 'openvpn'
nobody 958 0.0 0.0 5800 1104 ? Ss 13:13 0:00 /usr/sbin/openvpn --daemon ovpn-server --status /run/openvpn/server.status 10 --cd /etc/openvpn --config /etc/openvpn/server.conf
root 1697 0.0 0.1 6088 2544 ? Ss 13:13 0:00 /usr/sbin/openvpn --daemon --auth-nocache --config /root/.vpn_conf/pia.ovpn
I'm really confused about how to control which items boot on startup and which tools I should use to disable / enable them. Could I get some links or pointers to getting help with this?
User avatar
Site Admin
Posts: 2779
Joined: Tue Feb 06, 2007 1:36 pm

Re: Confused about dietpi-process_tool

Post by Fourdee »

odreezy wrote:I'm trying to:
* only start openvpn client at boot
* disable openvpn server at boot

DietPi-Services takes control of services. Here is a list of all services this applies to (if installed): ... es#L24-L76

DietPi-Services will start the above services (if installed) during boot, and restart them as needed in other DietPi programs.

If you want to prevent DietPi from starting these services, simply remove the entry from the source code, located in:
NB: If you update DietPi, your changes will be lost due to script update.

Code: Select all

Then disable openvpn:

Code: Select all

systemctl disable openvpn
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Post Reply