[systemd-devel] instantiated services set up

Lennart Poettering lennart at poettering.net
Wed Oct 22 04:12:19 PDT 2014


On Mon, 15.09.14 13:03, Jan Včelák (jan.vcelak at nic.cz) wrote:

> > After=syslog.target is redundant since a long time. Consider removing
> > this. And After=network.target usually doesn't do what one might thing
> > it does and with well written software that listens to rtnl or uses
> > IP_FREEBIND not even necessary...
> 
> OK. I will remove the syslog. But I will have to keep network.target for now 
> as we support non-Linux systems as well. Adding support for rtnl or 
> IP_FREEBIND would mean duplicating a lot of code... probably.

Note that invoking IP_FREEBIND is just a single setsockopt() line...

> > > 1.) Is it valid to ship both knot.service and knot at .service file?
> > 
> > Sure, but for the sake of simplicity and not confusing the user I would
> > avoid this.
> > 
> > I'd just ship the templated version, and then maybe add
> > DefaultInstance=something to the [Install] section in order to make one
> > instance the "default" one...
> 
> DefaultInstance sounds great. Will this get backported into systemd-stable at 
> some time? Because I'm looking for a solution for RHEL 7.

Please file a bug for RHEL 7 and the right peple will make sure this happens.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list