From: Bo B. <bo....@gm...> - 2022-06-18 21:21:11
|
On Sat, 18 Jun 2022 20:01:10 +0000, tincantech via Openvpn-users <ope...@li...> 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/ope...@se...rvice /sys/fs/cgroup/devices/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /sys/fs/cgroup/memory/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /sys/fs/cgroup/memory/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /sys/fs/cgroup/pids/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /sys/fs/cgroup/pids/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /sys/fs/cgroup/systemd/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /sys/fs/cgroup/systemd/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /sys/fs/cgroup/unified/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /sys/fs/cgroup/unified/system.slice/system-openvpn\x2dserver.slice/ope...@se...rvice /etc/systemd/system/multi-user.target.wants/ope...@se...rvice /etc/systemd/system/multi-user.target.wants/ope...@se...rvice 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 |