Bug 746472

Summary: Openvpn service management broken
Product: [Fedora] Fedora Reporter: Pavel Alexeev <pahan>
Component: openvpnAssignee: Steven Pritchard <steve>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 16CC: dkovalsk, gwync, huzaifas, jan.kratochvil, maurizio.antillon, psabata, sellis, steve, tjb
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-02 10:41:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Pavel Alexeev 2011-10-16 11:38:55 UTC
Description of problem:
# systemctl status openvpn.service
openvpn.service
          Loaded: error (Reason: No such file or directory)
          Active: inactive (dead)

# service openvpn restart
Redirecting to /bin/systemctl  restart 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.

# rpm -ql openvpn | grep -i service
/lib/systemd/system/openvpn@.service

# systemctl status openvpn@.service
Failed to issue method call: Unit name openvpn@.service is not valid.

Version-Release number of selected component (if applicable):
# rpm -q openvpn
openvpn-2.2.1-2.fc16.x86_64

How reproducible:
Always

Comment 1 Jan Kratochvil 2011-11-02 16:23:36 UTC
It works by: 
# systemctl start openvpn

But it is difficult to guess it.

Comment 2 Pavel Alexeev 2011-11-02 17:02:22 UTC
Hm... Very interesting. In what man it mentioned??? How users should guess it? How restart all hosts?

Comment 3 Jan Kratochvil 2011-11-02 17:07:24 UTC
I found it in the Bug 744244.

Comment 4 David Kovalsky 2011-12-10 20:12:32 UTC
It does start that way, but how do I enable it as a service?

[root@veselo openvpn]# systemctl start  openvpn
[root@veselo openvpn]# echo $?
0
[root@veselo openvpn]# systemctl enable  openvpn
Failed to issue method call: No such file or directory

Comment 5 Steven Ellis 2012-01-02 10:41:55 UTC
For this there is no support in systemctl. Manually creating the symlinks in
the right directories will work though.

*** This bug has been marked as a duplicate of bug 752774 ***