|
[22:12] <arekm> hi, is there anyone alive who could help me track one issue? poweroff from upstart is broadcasting message about system going "for power off" but it's not doing actual poweroff. Nothing else happens. This is custom distro that wants to use upstart |
|
[22:17] <arekm> I'm looking into ubuntu configs and actually I don't see where poweroff events are handled |
|
[22:31] <arekm> strace shows that init gets some message with "INIT_HALT=POWEROFF" but does nothing |
|
[22:42] <arekm> Nov 21 23:42:02 arm init: event_new: Pending runlevel event |
|
[22:42] <arekm> Nov 21 23:42:02 arm init: event_finished: Finished runlevel event |
|
[22:42] <arekm> but hm, nothing is run |
|
[23:21] <arekm> "telinit 0" on the other hand works well |
|
[23:26] <arekm> "shutdown -P" now also does nothing but "shutdown -P now -h' shutdowns system and powersoff |
|
[23:26] <arekm> while according to manual -P implies -h |
|
[23:26] <arekm> s/manual/shutdown --help/ |
|
[23:39] <arekm> looks like NIH_MUST (e = nih_sprintf (NULL, "INIT_HALT=%s", init_halt)); |
|
[23:40] <arekm> or any other env sent (NIH_MUST (e = nih_sprintf (NULL, "BLABLA=ZIMA"));) |
|
[23:40] <arekm> causes init to behave wrongly |
|
|