[systemd-devel] oneshot service

Andrei Borzenkov arvidjaar at gmail.com
Tue Jul 7 10:18:46 PDT 2015


В Tue, 7 Jul 2015 13:04:11 -0400
Ernast Sevo <ersevs at gmail.com> пишет:

> Apologies that was mistakenly sent. The example service is below.
> 
> [Unit]
> Before=local-fs.target
> After=<some service>
> DefaultDependencies=false
> 
> [Service]
> Type=oneshot
> ExecStart=/usr/bin/xxx
> RemainAfterExit=yes
> 
> [Install]
> WantedBy=local-fs.target
> 
> The problem is I can see boot-up continue prior to this service doing
> its job.

How do you determine this?

>          I am not sure if I am missing
> something but I haven't come across anything in the documentation that
> can help. The service finishes its job
> later but something's that depend on it have already failed and have
> not waited for it to finish doing what it is doing.
> 
> Any thoughts as to what could be causing this?
> 
> Thanks,
> 
>  Ernast
> 
> On Tue, Jul 7, 2015 at 1:00 PM, Ernast Sevo <ersevs at gmail.com> wrote:
> > Hello!
> >
> >  According to the documentation for a oneshot service "it is expected
> > that the process has to exit before systemd starts follow-up units". I
> > have the following service:
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel



More information about the systemd-devel mailing list