Bug 27576 - openvpn doesn't start after a reboot
Summary: openvpn doesn't start after a reboot
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Joseph Wang
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-06 20:51 CET by Alex Kotov
Modified: 2020-11-09 14:56 CET (History)
1 user (show)

See Also:
Source RPM: openvpn-2.5.0-1.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Alex Kotov 2020-11-06 20:51:29 CET
Description of problem:
Hi. openvpn did not start after the reboot.

Version-Release number of selected component (if applicable):
openvpn-2.5.0-1.mga8.x86_64.rpm

How reproducible:
---
(the /etc/openvpn/client.conf file is present and working...)

systemctl enable openvpn@client.service

reboot

...openvpn did not start after the reboot.

Solution:
---
systemctl disable openvpn@client.service
---
Editing: /usr/lib/systemd/system/openvpn@.service
and specify the target in [Install] explicitly: WantedBy=multi-user.target
---
[Unit]
Description=OpenVPN Robust And Highly Flexible Tunneling Application (Config: %I)
After=network.target
PartOf=openvpn.target

[Service]
PrivateTmp=true
Type=forking
PIDFile=/run/openvpn/%i.pid
ExecStart=/usr/sbin/openvpn --daemon --writepid /run/openvpn/%i.pid --cd /etc/openvpn/ --config %i.conf

[Install]
#WantedBy=openvpn.target
WantedBy=multi-user.target
---

systemctl enable openvpn@client.service

reboot

Now openvpn autorun works...

Sincerely,
Alex
Comment 1 Lewis Smith 2020-11-08 21:34:56 CET
Thank you for this report, and your diagnostic - the one line you give in
 /usr/lib/systemd/system/openvpn@.service         [Install]

Can I assign this to you, Joe, as you have done all the recent Cauldron commits for the package.

Source RPM: (none) => openvpn-2.5.0-1.mga8.src.rpm
Assignee: bugsquad => joequant

Comment 2 Joseph Wang 2020-11-09 07:27:40 CET
Yeah sure.  I'll take a look.

CC: (none) => joequant

Comment 3 Joseph Wang 2020-11-09 08:16:22 CET
fixed in openvpn-2.5.0-2
Comment 4 Alex Kotov 2020-11-09 14:56:06 CET
Hello, Joseph Wang and Lewis Smith. openvpn-2.5.0-2 works well. I will close this bug myself, so as not to distract you. Thank you all for your cooperation.

Sincerely,
Alex

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.