[Pkg-systemd-maintainers] Bug#714714: Bug#714714: Bug#714714: Bug#714714: systemd: environment initctl requests not supported

Michael Stapelberg stapelberg at debian.org
Tue Jul 2 07:19:35 BST 2013


Hi Tollef,

Tollef Fog Heen <tfheen at err.no> writes:

> ]] Michael Biebl 
>
>> Am 02.07.2013 04:38, schrieb Paul Wise:
>> 
>> > systemd doesn't support "environment initctl request"s. systemd needs to
>> > support all initctl requests if it is going to replace sysvinit in Debian
>> 
>> Why is INIT_CMD_SETENV/INIT_CMD_UNSETENV a critical feature which needs
>> to be supported by systemd-initctl?
>
> it seems like shutdown(8) is setting INIT_HALT to HALT or POWERDOWN
> depending on whether it wants to halt or power down.  I haven't tested,
> but I suspect this means you can either not halt or either not
> shutdown.  (Or this is handled some other way than through env variables
> nowadays.)
halttype is either HALT or POWERDOWN, and the shutdown() function calls
init_setenv("INIT_HALT", halttype);. The only reference I can find to
INIT_HALT is in sysvinit’s debian/src/initscripts/etc/init.d/halt

Paul, could you clarify what’s the actual problem here? You did not say
whether anything actually went wrong, e.g. did your machine not power
off even though you requested it (but you said it _was_ powered off)?

-- 
Best regards,
Michael




More information about the Pkg-systemd-maintainers mailing list