Re: Openvpn: how to start at login?

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

 



On Sunday, 26. August 2012. 0.00.16 Timothy Murphy wrote:
> Marko Vojinovic wrote:
> > In what sense openvpn *doesn't* run like every other service?
> 
> Before systemd/systemctl came along
> I just used to say "chkconfig openvpn on".
> I'm just asking why I can't do the equivalent today?
> 
> As far as I know, one can "systemctl enable" every other service.

Well, if you take another look at the link I gave you,

  http://fedoraproject.org/wiki/Openvpn#Working_with_systemd

you will see that after the server setup instructions, there are also the 
client setup instructions. Assuming that you have already configured keys and 
the openvpn configuration file /etc/openvpn/MyClient.conf, you might be 
interested in these particular steps:

4. cd /lib/systemd/system
5. ln openvpn@.service openvpn@MyClient.service
6. systemctl enable openvpn@MyClient.service
7. systemctl start openvpn@MyClient.service 

This worked for me, openvpn client service starts automatically at boot, and 
never shuts down. If it doesn't work for you, look at /var/log/messages and 
tell us what went wrong.

HTH, :-)
Marko



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[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