On Sat, 18 Jun 2022 13:46:09 +0000, tincantech via Openvpn-users
<openvpn-users@lists.sourceforge.net> wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA256
>
>Hi,
>
>------- Original Message -------
>On Saturday, June 18th, 2022 at 09:26, Bo Berglund <bo.bergl...@gmail.com> 
>wrote:
>
><s>
>
>> The way I did that:
>>
>> 1) sudo systemctl stop openvpn
>> sudo systemctl stop openvpn@server.service
>> sudo systemctl stop openvpn@serverlocal.service
>> 2) sudo systemctl disable openvpn@server.service
>> sudo systemctl disable openvpn@serverlocal.service
>> sudo systemctl disable openvpn.service
>> 3) Edit /etc/default/openvpn and comment out the AUTOSTART line
>> 4) sudo mkdir /etc/openvpn/client
>> sudo mkdir /etc/openvpn/server
>> 5) sudo mv /etc/openvpn/server*.conf /etc/openvpn/server/
>> 6) sudo systemctl enable --now openvpn-server@server
>> sudo systemctl enable --now openvpn-server@serverlocal
>>
>> It seemed to work, but you might have spotted a flaw in this migration, so
>> please advice how to actually disable/mask the offending services.
>>
>
>That looks to be correct.

Thanks for the confirmation!

>If you want your log-file to contain time-stamps then edit the file:
>/lib/systemd/system/openvpn-server@.service
>remove '--supress-timestamps'

I cannot find such a file...

bosse@ubuntuserv:/lib/systemd/system$ ls -la open*
-rw-r--r-- 1 root root 987 Jan 19  2021 open-iscsi.service
-rw-r--r-- 1 root root 489 Jul 12  2021 open-vm-tools.service
-rw-r--r-- 1 root root 320 Feb 19  2019 openvpn.service
-rw-r--r-- 1 root root 914 Feb 19  2019 openvpn@.service

And:

bosse@ubuntuserv:/lib/systemd$ find ./ -name "openvpn*"
./system/openvpn@.service
./system/openvpn.service
./system-generators/openvpn-generator


As you can see there are only two files with names starting with openvpn and
neither of them contain the keyword.
OTOH they date back to Feb 19 2019, so they are probably leftovers that are
unused anyway...

Maybe the files actually used on Ubuntu reside elsewhare?


-- 
Bo Berglund
Developer in Sweden



_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to