On 24 July 2015 at 10:38, James Hogarth <james.hoga...@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. _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel