<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 11/11/13 18:23, Zbigniew
Jędrzejewski-Szmek wrote:<br>
</div>
<blockquote cite="mid:20131111172345.GH30929@in.waw.pl" type="cite">
<pre wrap="">On Mon, Nov 11, 2013 at 05:50:51PM +0100, Abdelghani Ouchabane wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On 11/11/13 17:35, Zbigniew Jędrzejewski-Szmek wrote:
</pre>
<blockquote type="cite">
<pre wrap="">On Mon, Nov 11, 2013 at 05:26:28PM +0100, Abdelghani Ouchabane wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap="">Is ezono-cyclaed.target enabled?
</pre>
</blockquote>
<pre wrap="">Yes
ezono-cyclades.target - eZono Cyclades GUI
Loaded: loaded (/usr/lib/systemd/system/ezono-cyclades.target; enabled)
Active: active since Mon 2013-11-11 17:48:43 CET; 23s ago
Nov 11 17:48:43 sonostation-usb12-eth.ezono.net systemd[1]: Starting
eZono Cyclades GUI.
Nov 11 17:48:43 sonostation-usb12-eth.ezono.net systemd[1]: Reached
target eZono Cyclades GUI.
</pre>
</blockquote>
<pre wrap="">The condition is only checked once, when the unit is started. I'd guess
that whatever creates /tmp/cyclades/start-ezono-cyclades-gui, does it
after the ezono-cyclades-t_upn.service/start job has already been done.
The condition will not be checked again unless you restart the servcie.</pre>
</blockquote>
Thanks Zbigniew<br>
<br>
I confirm that, the condition is checked only after I execute :
systemctl daemon-reload<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<blockquote cite="mid:20131111172345.GH30929@in.waw.pl" type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">Also, DefaultDependencies=no is very unlikely to be what you need.
</pre>
</blockquote>
<pre wrap="">I want to start ezono-cyclades-t_upn.path early as I can
</pre>
</blockquote>
<pre wrap="">That's not very convicing. I have no idea what it does, but
DefaultDependencies=no is only appropriate for services which
participate in bringing up the system.</pre>
</blockquote>
Right, I have two services which deal with hardware devices, and
they start early properly.<br>
<br>
<blockquote cite="mid:20131111172345.GH30929@in.waw.pl" type="cite">
<pre wrap="">
Units that you show are very very complex, but it's unlikely that this
is all needed. E.g. don't implement your own strange logging
solutions, just start systemd with --log-level=debug and you'll get
full information about what is started and when. Also output from
services is logged to the journal by default.</pre>
</blockquote>
I am planning to remove my logging solutions and use the systemd
built-in.<br>
<br>
Thanks<br>
</body>
</html>