[systemd-devel] Systemd port on custom embedded linux

Lennart Poettering lennart at poettering.net
Sun Sep 26 17:24:01 PDT 2010


1;2591;0cOn Thu, 23.09.10 16:26, Andrey Borzenkov (arvidjaar at 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.


More information about the systemd-devel mailing list