Re: Fedora disimprovements: am I alone?

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

 




Am 23.03.2012 18:36, schrieb Timothy Murphy:
> Reindl Harald wrote:
>> 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?
> 
> Please read more carefully the posting you are responding to

please try to understadn what people are telling you

> I had been advised that the commands I used would start and enable openvpn.
> I was simply pointing out that this is not so.

you were advised by people never seen openvpn and
blindly thinking it acts the same way as all other
services

>>>> 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
> 
> Again, read what I said: I don't know any SIMPLE way to enable openvpn.
> I do not regard what you wrote as a simple way to enable a service.
> Also, as I pointed out, it did not work for me,
> though I am quite prepared to believe this was due to a typo
> or other error on my part.
> (I would not be likely to make an error with "chkconfig openvpn on".)

the quote above is NOT from me

you simply do not recognize that this is a SPECIAL CASE because it
makes sense to have it active as client in one network while another
instance providing openvpn as service on the same machine

how do you do that?
come on tell as the syntax to enable two openvpn instances
(one server and one client) with chkconfig!

ONE LAST time i post you the systemd-unit to let openvpn
behave like all the years before - only one instance possible
and after create this damned file you can even do
"chkconfig openvpn on" because it will be redirected to systemctl
in the right order

and if you like the simple syntax you can put as many
copies as you need under /etc/systemd/system/ for
different instances which different parameters
and use "chkconfig" for all of them

so please stop whine around because ONE SPECIFIC SPECIAL SERVICE
for nearly all others you can use "chkconfig" as all the years before

[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
ExecStartPre=
ExecStart=/usr/sbin/openvpn --daemon --writepid /var/run/openvpn/openvpn.pid --cd /etc/openvpn/ --config openvpn.conf
ExecStopPost=
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