Re: systemctl openvpn won't start

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

 



An explanation of systemd template files:
https://fedoramagazine.org/systemd-template-unit-files/

For you, you should:
cp -a /usr/lib/systemd/system/openvpn-client@.service /etc/systemd/system/openvpn-client@ibecker2.service
systemctl daemon-reload
systemctl start openvpn-client@ibecker2.service
systemctl enable openvpn-client@ibecker2.service

I don't have a Fedora 27 system so I can't say exactly where your ibecker2.conf should go.
Probably in /etc/openvpn/client/ if you have that directory, else in /etc/openvpn/ .  Look in
/etc/systemd/system/openvpn-client@ibecker2.service for the ExecStart line.  For
Fedora 24 it's:
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf
Which translates to /etc/openvpn/ibecker2.conf because the executable changes
the working directory to /etc/openvpn (--cd /etc/openvpn/).

Bill


On 11/25/2017 7:07 PM, Neal Becker wrote:
Ulf Volmer wrote:

On 23.11.2017 13:34, Neal Becker wrote:

sudo systemctl enable openvpn-client@ibecker2.service
Failed to enable unit: Unit file openvpn-client@ibecker2.service does not
exist.
interesting. Could you post the output of

rpm -ql openvpn|grep service

best regards
Ulf
 rpm -ql openvpn|grep service 
/usr/lib/systemd/system/openvpn-client@.service
/usr/lib/systemd/system/openvpn-server@.service

[nbecker@nbecker2 xsimd]$ rpm --verify openvpn

Yes, those 2 files are there in /usr/lib/systemd/system
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux