[systemd-devel] Path unit configuration starts early (DefaultDependencies=no)
Zbigniew Jędrzejewski-Szmek
zbyszek at in.waw.pl
Mon Nov 11 08:35:22 PST 2013
On Mon, Nov 11, 2013 at 05:26:28PM +0100, Abdelghani Ouchabane wrote:
> Hallo,
> I have two configuration files: ezono-cyclades-t_upn.path &
> ezono-cyclades-t_upn.service
>
>
> Where:
>
> ezono-cyclades-t_upn.path :
>
> [Unit]
> Description=ezono-cyclades-t_upn Service Spool
> DefaultDependencies=no
> Conflicts=shutdown.target
> Before=shutdown.target
>
> [Path]
> PathExists=/tmp/cyclades/start-ezono-cyclades-gui
>
> [Install]
> WantedBy=ezono-cyclades.target
>
>
> The problem is that by passing "DefaultDependencies=no"
> ezono-cyclades-t_upn.service doesn't start after
> /tmp/cyclades/start-ezono-cyclades-gui is created, even after all
> other units run and I delete /tmp/cyclades/start-ezono-cyclades-gui
> and create it again.
>
> Any idea please.
Is ezono-cyclaed.target enabled?
Also, DefaultDependencies=no is very unlikely to be what you need.
Also, /tmp/cyclades is subject to "predicatable paths in /tmp" attack.
You should use a file in /run/.
Zbyszek
More information about the systemd-devel
mailing list