[systemd-devel] openvpn at .service
Mirco Tischler
mt-ml at gmx.de
Tue Nov 15 13:10:54 PST 2011
2011/11/15 Manuel Amador (Rudd-O) <rudd-o at rudd-o.com>:
> It's a multi-instance service. You can instance it several times based
> on a parameter, much like tty at .service can be instantiated to be
> tty at tty1.service.
>
> On Tue, 2011-11-15 at 10:06 -0500, Michael D. Berger wrote:
>> Why does "openvpn at .service" have the '@'?
>>
>> Thanks,
>> Mike.
>>
>> --
>> Michael D. Berger
Most certainly it is a socket activated service in the inetd style,
i.e. one service instance per connection.
The socket file probably contains Accept=yes, meaning for every
connection to that socket one instance
openvpn@<host-ip>:port-<client-ip>:port.service is spawned. This way,
all daemons that support inetd can be socket activated in systemd,
although the preferred way is to have an openvpn.service file (without
the @) which gets started on the first connection and then handles all
incoming connections, without exiting after all connections are
closed.
Mirco
More information about the systemd-devel
mailing list