On Sat, 18 Jun 2022 20:01:10 +0000, tincantech via Openvpn-users
<openvpn-users@lists.sourceforge.net> wrote:

>> > 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...
>
>Well, you now know the solution.
>
>All you need do is find where your Ubuntu hides systemd,

So I searched from / instead:

sudo find / -name "openvpn-server*"
/usr/lib/systemd/system/openvpn-server@.service
/sys/fs/cgroup/devices/system.slice/system-openvpn\x2dserver.slice/openvpn-server@server.service
/sys/fs/cgroup/devices/system.slice/system-openvpn\x2dserver.slice/openvpn-server@serverlocal.service
/sys/fs/cgroup/memory/system.slice/system-openvpn\x2dserver.slice/openvpn-server@server.service
/sys/fs/cgroup/memory/system.slice/system-openvpn\x2dserver.slice/openvpn-server@serverlocal.service
/sys/fs/cgroup/pids/system.slice/system-openvpn\x2dserver.slice/openvpn-server@server.service
/sys/fs/cgroup/pids/system.slice/system-openvpn\x2dserver.slice/openvpn-server@serverlocal.service
/sys/fs/cgroup/systemd/system.slice/system-openvpn\x2dserver.slice/openvpn-server@server.service
/sys/fs/cgroup/systemd/system.slice/system-openvpn\x2dserver.slice/openvpn-server@serverlocal.service
/sys/fs/cgroup/unified/system.slice/system-openvpn\x2dserver.slice/openvpn-server@server.service
/sys/fs/cgroup/unified/system.slice/system-openvpn\x2dserver.slice/openvpn-server@serverlocal.service
/etc/systemd/system/multi-user.target.wants/openvpn-server@server.service
/etc/systemd/system/multi-user.target.wants/openvpn-server@serverlocal.service

These are the files matching and I don't know which two are the real files to
edit...

I looked in the file:
/usr/lib/systemd/system/openvpn-server@.service

and it contains this:
[Service}
ExecStart=/usr/sbin/openvpn --status %t/openvpn-server/status-%i.log
--status-version 2 --suppress-timestamps --config %i.conf

So here I can remove the --suppress-timestamps argument, but does it cover BOTH
of my two service instances??


I assume I have to restart openvpn service to make it "take":
sudo systemctl restart openvpn-server@server
sudo systemctl restart openvpn-server@serverlocal

Or is it:
sudo systemctl restart openvpn-server



-- 
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