On Sat, Jun 18, 2022 at 23:20:54 +0200, Bo Berglund wrote:
> I looked in the file:
> /usr/lib/systemd/system/[email protected]
> 
> 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 don't use this feature personally, but based on my reading of the
.service file:)

Assuming your setup has the two files
  /etc/openvpn/server/server.conf
and
  /etc/openvpn/server/serverlocal.conf

(and that the [email protected] file on your system is not too
different than the one in the Focal package)... then yes, the
[email protected] covers both of your service instances.

Basically when you try to start the "openvpn-server@serverlocal"
service, systemd uses the "[email protected]" file with a
parameter of "serverlocal" (which is then substituted in for the "%i"
specifier within the .service file).

(You can read more about this functionality by searching for the word
"template" in the systemd.unit man page....)

                                                        Nathan

----------------------------------------------------------------------------
Nathan Stratton Treadway  -  [email protected]  -  Mid-Atlantic region
Ray Ontko & Co.  -  Software consulting services  -   http://www.ontko.com/
 GPG Key: http://www.ontko.com/~nathanst/gpg_key.txt   ID: 1023D/ECFB6239
 Key fingerprint = 6AD8 485E 20B9 5C71 231C  0C32 15F3 ADCD ECFB 6239


_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to