[Solved] OpenVPN server systemd

This forum is for topics dealing with problems with software specifically in the ARMv6h repo.

[Solved] OpenVPN server systemd

Postby Topas » Thu Oct 05, 2017 3:30 pm

Hello,

I'm running an OpenVPN server on my Raspberry PI 1 B.
It was running for a long time but a month ago I could not connect anymore.

Found out that the server isn't starting anymore at boot.
Starting manually works
Code: Select all
openvpn /etc/openvpn/server.conf # works

Starting with systemctl doesn't
Code: Select all
systemctl start openvpn@server.service

Failed to start openvpn@server.service: Unit openvpn@server.service not found.

Looking into the systemd folder i find:
Code: Select all
ls -l /etc/systemd/system/multi-user.target.wants/ | grep openvpn

lrwxrwxrwx 1 root root 40 Mar  4  2016 openvpn@server.service -> /usr/lib/systemd/system/openvpn@.service

Code: Select all
ls -l /usr/lib/systemd/system/ | grep openvpn

-rw-r--r-- 1 root root  701 Sep 28 10:34 openvpn-client@.service
-rw-r--r-- 1 root root  807 Sep 28 10:34 openvpn-server@.service


I'm running all commands as root. I know you should never do, but wanted to be safe that it is not a permission thing.

Anybody knows why I can't start the server anymore?
Last edited by Topas on Thu Oct 05, 2017 8:32 pm, edited 2 times in total.
Topas
 
Posts: 2
Joined: Thu Oct 05, 2017 3:11 pm

Re: OpenVPN server systemd

Postby graysky » Thu Oct 05, 2017 7:04 pm

The service files changed. The new release requires server.conf to be under /etc/openvpn/server now.
graysky
 
Posts: 356
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: OpenVPN server systemd

Postby Topas » Thu Oct 05, 2017 7:35 pm

Thank you, solved my problem

Code: Select all
mv /etc/openvpn/server.conf /etc/openvpn/server/server.conf

rm /etc/systemd/system/multi-user.target.wants/openvpn@server.service
ln -s /usr/lib/systemd/system/openvpn-server@.service /etc/systemd/system/multi-user.target.wants/openvpn@server.service
Topas
 
Posts: 2
Joined: Thu Oct 05, 2017 3:11 pm


Return to ARMv6h

Who is online

Users browsing this forum: No registered users and 1 guest