[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: systemd, openvpn and automatically created services at boot



On 05/19/2015 07:31 PM, Michael Biebl wrote:
Am 19.05.2015 um 17:22 schrieb George Shuklin:
Hello.

When systemd starts openvpn it creates new services dynamically. F.e. if
I have /etc/openvpn/test.conf it added as openvpn@test.service
..

Is any way to say systemd (openvpn?) to not start such service at boot?
Nothing really changed in that regard to how this worked in wheezy. The
systemd generator shipped by openvpn, reads /etc/default/openvpn and
respects the AUTOSTART config setting.
I suspect, you use the default, i.e. AUTOSTART=all, which means the
generator will generator an instance for every config file it finds.


Aha!
/etc/default/openvpn - the place to change AUTOSTART. Works perfectly.

Thank you!


Reply to: