by gcp900 » Mon Mar 09, 2015 6:30 pm
$this->bbcode_second_pass_quote('', 'T')his is normal behaviour if you call openvpn from the command line. The proper command is
Code: Select all
systemctl start
openvpn@server.serviceThis tells systemd to start openvpn and the location is set in the service file to /etc/openvpn
I cannot reboot the raspberry right now because I am not at home and I am accesing it through ssh, but when I type "systemctl start
openvpn@server.service" I get this:
$this->bbcode_second_pass_code('', '[root@alarmpi ~]# systemctl status openvpn@server.service
* openvpn@server.service - OpenVPN connection to server
Loaded: loaded (/usr/lib/systemd/system/openvpn@.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2015-03-07 19:31:51 UTC; 1 day 22h ago
Process: 142 ExecStart=/usr/bin/openvpn --cd /etc/openvpn --config /etc/openvpn/%i.conf --daemon openvpn@%i --writepid /run/openvpn@%i.pid (code=exited, status=1/FAILURE)
Mar 07 19:31:51 alarmpi systemd[1]: openvpn@server.service: control process...=1
Mar 07 19:31:51 alarmpi systemd[1]: Failed to start OpenVPN connection to s...r.
Mar 07 19:31:51 alarmpi systemd[1]: Unit openvpn@server.service entered fai...e.
Mar 07 19:31:51 alarmpi systemd[1]: openvpn@server.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
')
It seems that the order for starting at boot is saved correctly but something fails. Can you see anything in the code??
$this->bbcode_second_pass_quote('', 'D')ude, we're talking about running/enabling the systemd service.
Yes, when you manually call openvpn you need to specify the whole path.
"restorecon" seems to an item from SElinux. (
http://fedoraproject.org/wiki/SELinux/restorecon)
I followed the Fedora's guide and all the commands seemed to work except restorecon but it didn't work. I don't know how many important is that command.