Re: Openvpn: how to start at login?

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

 



Ed Greshko wrote:

>> I have a script
>> ---------------------------------
>> #! /bin/sh
>> sudo systemctl restart openvpn@client.service
>> ---------------------------------
>> which I run (under Fedora-17) if vpn is not connected when I logon
>> (normally after hibernating).
>>
>> I'm wondering if there is a "systemctl enable" or similar command
>> which will do this more simply?
> 
> Which desktop do you use?  KDE has an Autostart capability.  You could
> modify your script to detect if the connection is active and if so do
> nothing and if not run the "systemctl restart" which you currently run by
> hand...which is what I think you are doing.

Thanks for your response.
But that's essentially what I do.
I can see if vpn is active.
If it isn't I run the script.
(I do run KDE, incidentally.)

But surely there should be a way of enabling this service,
as there used to be?
Wouldn't it be much simpler just to default to client,
which I imagine is what 99% of users want?
Why can't openvpn run like every other service?

Simplicity ... simplicity ... simplicity


-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College Dublin


-- 
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