Re: Fedora disimprovements: am I alone?

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

 




Am 23.03.2012 10:26, schrieb Timothy Murphy:
> [tim@blanche ~]$ sudo systemctl start openvpn.service
> Failed to issue method call: Unit openvpn.service failed to load: No such 
> file or directory. See system logs and 'systemctl status openvpn.service' 
> for details.
> [tim@blanche ~]$ sudo systemctl enable openvpn.service
> Failed to issue method call: No such file or directory
> 
> Nb I know how to start the service,
> but I don't know any simple way to enable it.

why the hell do you not read answers?

>> If your openvpn config file is /etc/openvpn/client.conf, do:
>>
>>
>> ln -s /lib/systemd/system/openvpn\@.service /etc/systemd/system/openvpn\@client.service
>>
>> systemctl daemon-reload
>>
>> systemctl start openvpn@client.service
>>
>> systemctl status openvpn@client.service

yes, the new openvpn service is not as  simple as other ones
but how did you start openvpn as client AND server on the
same machine before systemd????????

if you do not like this syntax take 15 seconds and
write your own servcie file as i did long ago

how would you have done THAt with the sysvinit?
__________________________________

[root@srv-rhsoft:~]$ cat /etc/systemd/system/openvpn.service
[Unit]
Description=OpenVPN
After=syslog.target network.target

[Service]
Type=forking
PIDFile=/var/run/openvpn/openvpn.pid
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/openvpn.pid --cd /etc/openvpn/ --config openvpn.conf
Restart=always
RestartSec=1

[Install]
WantedBy=multi-user.target

Attachment: signature.asc
Description: OpenPGP digital signature

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