Bug 8906 - poweroff broken
Summary: poweroff broken
Status: RESOLVED INVALID
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.24.x
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-03 19:51 UTC by Axel Fontaine
Modified: 2016-08-23 19:41 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Fontaine 2016-05-03 19:51:59 UTC
In Busybox 1.23 and newer, including 1.24.2 poweroff does nothing at all.

How to reproduce:

1. Create a vagrant VM based on Ubuntu 14.04 LTS
2. SSH into the VM
3. Download & extract the busybox sources
4. make menuconfig and select poweroff
5. make
6. sudo busybox poweroff
7. Nothing happens

This happens both with statically and dynamically compiled builds.
Comment 1 Denys Vlasenko 2016-08-23 19:41:43 UTC
busybox's poweroff sends SIGUSR2 to init.
busybox's init understands this as a request to shutdown.

Other inits do not. IIRC there is no standardized method to signal init to reboot, poweroff etc.