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