Hi and thanks for the quick reply !<br>I&#39;ve added the<br><br>šEnvironment=INIT_VERSION=sysvinit-1234<br><br>in my units and now I can control the reboot/poweroff/halt of my system !<br><br>Best !<br><br><br><br><br><div class="gmail_quote">
2010/9/23 Andrey Borzenkov <span dir="ltr">&lt;<a href="mailto:arvidjaar@mail.ru">arvidjaar@mail.ru</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Thu, 23 Sep 2010 14:09:16 +0300 ÐÉÓØÍÏ ÏÔ Cristian Axenie &lt;<a href="mailto:cristian.axenie@gmail.com">cristian.axenie@gmail.com</a>&gt;:<br>
<div class="im"><br>
&gt; Hi !<br>
&gt; Any ideas about the following behavior?<br>
&gt; ~ # reboot<br>
&gt; Broadcast message from root (ttyS0)<br>
&gt; The system is going down for system halt NOW!<br>
&gt; [? 296.080000] systemd-initctl[698]: Received environment initctl request.<br>
&gt; This is not implemented in systemd.<br>
&gt; And then the system freezes !<br>
&gt; It seems that the initctl tries to request a command to set/unset the<br>
&gt; environment when rebooting the system. Is this related to the fact that the<br>
&gt; reboott service is setting in the Environment=RUNLEVEL=6 variable ?<br>
<br>
</div>Are you using halt emulation from systemd or original sysvinit utilities?<br>
<br>
It could be related to the fact that this is not enough. Standard halt command<br>
from sysvinit behaves differently depending whether it is called by user or<br>
by /sbin/init. When called by user it simply pokes init via initctl which then<br>
re-executes halt once more and this time it really preforms halt. The check is<br>
<br>
 š š š š/*<br>
 š š š š * š š šFirst see if we were started directly from init.<br>
 š š š š */<br>
 š š š šif (getenv(&quot;INIT_VERSION&quot;) &amp;&amp; (r = getenv(&quot;RUNLEVEL&quot;)) != NULL)<br>
<br>
So on Mandriva I had to add INIT_VERSION to reboot/halt/poweroff units to make<br>
systemd coexist with sysvinit utilities.<br>
<br>
<br>
</blockquote></div><br>