wknapik / openvpn-unroot

Run OpenVPN without root privileges
MIT License
31 stars 7 forks source link

Place systemd unit changes in separate file #10

Open jonjonw opened 6 years ago

jonjonw commented 6 years ago

Systemd supports overrides for unit files. Since it looks like you're just adding two values, you could just modify the existing unit file with a .d file.

ie, create a file: /etc/systemd/system/openvpn-client@vpn-unrooted.service.d/user.conf containing: [Service] User=openvpn Group=openvpn

That way you'll get any fixes in the unit file for openvpn automatically included when there is an upgrade.