[systemd-devel] Service enable at runtime after union fs
stefano.manni at gmail.com
Wed Feb 5 00:26:04 CET 2014
Doesn't the 'systemctl enable' do a reload by itself?
Anyway I tried to issue a systemctl daemon-reload after the enable for each
service but it didn't work.
What do you mean with 'requeue the target which should pull in the
additional new deps'?
Il mercoledì 5 febbraio 2014, Lennart Poettering <lennart at poettering.net>
> > Hi,
> > I'm facing with a problem while trying to enable services whose files are
> > not present at the boot time. Here is the scenario:
> > 1. the service *apps-mount.service* mounts a squashfs containing
> > services in union (aufs) on /etc/systemd/system
> > RESULT: in /etc/systemd/system there are now all the new services and
> > each contains WantedBy=*apps-started.target*
> > 2. the service *apps-start.service* enables all the new services (added
> > point 1) invoking a 'systemctl enable --runtime xxx.service'
> > RESULT: In /etc/systemd/system/apps-started.wants/ there are
> > all the links to the enabled services
> > 3.* apps-started.target* starts and finishes
> > RESULT: the new services have *not* been started
> > Is there a way to change a target's dependencies at runtime before the
> > target is launched?
> Well, you can issue "systemctl daemon-reload" and then requeue the
> target which should pull in the additional new deps.
> Lennart Poettering, Red Hat
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the systemd-devel