Re: Service not run, although enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 8, 2023 at 11:31 AM Martin Stenzel
<m.stenzel@xxxxxxxxxxxxxxxx> wrote:
...
> Your answer:
> These Wants and After are redundant, every standard service will be
> ordered after local-fs.target unless it also has
> DefaultDependencies=no.
>
> My answer/question:
> I want my service to be run DIRECTLY (at first place) AFTER the local filesystems (in /etc/fstab) were mounted.
>

You misunderstand what the After directive does. It does not do what you want.
...
> >
> > This is my service file.
> >
> > --
> > [Unit]
> > Description=Mount Bestcrypt containers
> > Wants=local-fs.target
> > After=local-fs.target
> >
>
> These Wants and After are redundant, every standard service will be
> ordered after local-fs.target unless it also has
> DefaultDependencies=no.
>




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux