<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
On 2011年08月26日 03:33, Warpme wrote:
<blockquote cite="mid:4E56A39C.9080007@o2.pl" type="cite">Hi,
<br>
<br>
I have problem with understanding following systemd behaviour and
need assistance of somebody knowledgeable in systemd config area:
<br>
<br>
Context:
<br>
daemon1 is server for application1
<br>
<br>
I want to have situation where:
<br>
1\"systemctl start application1" also starts daemon1
<br>
</blockquote>
Yes <br>
<br>
<br>
<blockquote cite="mid:4E56A39C.9080007@o2.pl" type="cite">2\"systemctl
stop daemon1" also stops also application1
<br>
</blockquote>
<br>
No, daemon1 will be started as long as application1 talk to daemon1<br>
<br>
<blockquote cite="mid:4E56A39C.9080007@o2.pl" type="cite">3\"systemctl
restart appication1" restarts only application1
<br>
</blockquote>
yes<br>
<blockquote cite="mid:4E56A39C.9080007@o2.pl" type="cite">4\"systemctl
restart daemon1" restarts also application1
<br>
</blockquote>
No need to do that. Just restart daemon1 and application1 won't even
notice that.<br>
<br>
<blockquote cite="mid:4E56A39C.9080007@o2.pl" type="cite">5\abort of
daemon1 triggers also restart of application1
<br>
</blockquote>
daemon1 will be started again.<br>
<br>
<blockquote cite="mid:4E56A39C.9080007@o2.pl" type="cite">
<br>
I do tests on ArchLinux with systemd 33.
<br>
<br>
For daemon1 unit file I don't enter any relevant to this example
After/BindTo statements.
<br>
<br>
For application1 unit file I have:
<br>
<br>
[Unit]
<br>
After=deamon1.service
<br>
BindTo=daemon1.service
<br>
<br>
Above configuration work as expected for 1\, 2\ & 3\
<br>
AFAIK 5\ is not Yet implemented.
<br>
Unfortunately for 4\ systemctl hangs during execution "systemctl
restart daemon1".
<br>
<br>
It is bug or I completely misunderstand systemd configuration
rules ?
<br>
<br>
br
<br>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
systemd-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:systemd-devel@lists.freedesktop.org">systemd-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/systemd-devel">http://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>