1;2591;0cOn Thu, 23.09.10 16:26, Andrey Borzenkov (arvidj...@mail.ru) wrote:

> It could be related to the fact that this is not enough. Standard halt command
> from sysvinit behaves differently depending whether it is called by user or
> by /sbin/init. When called by user it simply pokes init via initctl which then
> re-executes halt once more and this time it really preforms halt. The check is
> 
>       /*
>        *      First see if we were started directly from init.
>        */
>       if (getenv("INIT_VERSION") && (r = getenv("RUNLEVEL")) != NULL)
> 
> So on Mandriva I had to add INIT_VERSION to reboot/halt/poweroff units to make
> systemd coexist with sysvinit utilities.

Hmm, I don't really follow here. And I wonder why this worked fine on
Fedora and Suse...

Should we set INIT_VERSION in the upstream systemd version somewhere? If
so, care to prep a patch?

Could you elaborate on the rationale for this?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to