[systemd-devel] socket activated services and correct dependency mapping
Dimitri John Ledkov
dimitri.j.ledkov at intel.com
Fri Jul 24 03:55:13 PDT 2015
On 24 July 2015 at 10:38, James Hogarth <james.hogarth at gmail.com> wrote:
> I want a user to be able to systemctl start sslh and use listening
> addresses in /etc/sslh.cfg as always (so I'm reluctant to put a
> straight Sockets= in the service unit file) but as it stands the lazy
You can write a generator which will parse /etc/sshlh.cfg and drop e.g.
$1/sslh.socket.d/sshlh-cfg.conf
with contents
[Socket]
ListenStream=...
That way e.g. you can enforce that config file is still fully honoured
as canonical place to set ports.
Checkout generators at
http://www.freedesktop.org/wiki/Software/systemd/Generators/
Or e.g. look at /run/systemd for things that got generated by various
stuff (e.g. like the fstab generator).
--
Regards,
Dimitri.
Pura Vida!
https://clearlinux.org
Open Source Technology Center
Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.
More information about the systemd-devel
mailing list