systemd: Is it wrong?

Lennart Poettering mzerqung at 0pointer.de
Fri Jul 8 12:24:54 UTC 2011


On Fri, 08.07.11 06:47, Neil Horman (nhorman at redhat.com) wrote:

>
> On Thu, Jul 07, 2011 at 10:57:54PM -0400, Steve Dickson wrote:
> > Hello,
> >
> > One of the maintainers of systemd and I  have been working
> > together on trying to convert the NFS SysV init scripts
> > into systemd services. Here is the long trail...
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=699040
> >
> > The point is this, with fairly complicated system,
> > some events need to have happen, like loading modules,
> > before other events happen, like setting parameters of
> > those loaded modules.
> >
> > Currently the ExecStart commands can be started and end
> > before the ExecStartPre even start. This means setting
> > modules parameters within the same service file are
> > impossible.
> >
> I would have though intuitively that Pre commands would complete prior to
> ExecStart command in the same service file.  To not do so seems like a bug to
> me.

Yes, correct. ExecStartPre= lines are executed in the same order as they
appear in the unit file, and one by one. There is never more than
one ExecStartPre= process running, and if it is then this would be a bug.

Lennart

--
Lennart Poettering - Red Hat, Inc.


More information about the devel mailing list