Hi and thanks for the quick reply !<br>I'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"><<a href="mailto:arvidjaar@mail.ru">arvidjaar@mail.ru</a>></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 <<a href="mailto:cristian.axenie@gmail.com">cristian.axenie@gmail.com</a>>:<br>
<div class="im"><br>
> Hi !<br>
> Any ideas about the following behavior?<br>
> ~ # reboot<br>
> Broadcast message from root (ttyS0)<br>
> The system is going down for system halt NOW!<br>
> [? 296.080000] systemd-initctl[698]: Received environment initctl request.<br>
> This is not implemented in systemd.<br>
> And then the system freezes !<br>
> It seems that the initctl tries to request a command to set/unset the<br>
> environment when rebooting the system. Is this related to the fact that the<br>
> 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("INIT_VERSION") && (r = getenv("RUNLEVEL")) != 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>