On 18/06/2022 23:20, Bo Berglund wrote:
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
^^ This is the proper service file being packaged. Even though, as
this is from a Debian package, I would have expected it under
/lib/systemd/system.
/sys/fs/cgroup/devices/system.slice/
All these files under /sys are on a pseudo file system, not a real file
system. They represent data stored in the kernel. The /sys/fs/cgroup
part is about resource management on your system. Generally, you don't
need to care much about these areas unless you dig into system
management through cgroup.
/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 result of 'systemctl enable' commands.
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??
As mentioned in a prior mail today; unless you insist on using --log,
leave the --supress-timestamps alone :)
A unit file which ends with a '@' means it is to be considered a
"template". So when you call 'systemctl start
openvpn-server@server.service', the %i is replaced with what comes
between the '@' and '.service'.
I assume I have to restart openvpn service to make it "take":
sudo systemctl restart openvpn-server@server
sudo systemctl restart openvpn-server@serverlocal
Correct.
Or is it:
sudo systemctl restart openvpn-server
There exists no 'openvpn-server.service' unit, so this will fail. Only
the "template" version exists, which needs a "value" ...
openvpn-server@value.service.
--
kind regards,
David Sommerseth
OpenVPN Inc
_______________________________________________
Openvpn-users mailing list
Openvpn-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openvpn-users