Bug 8906

Summary: poweroff broken
Product: Busybox Reporter: Axel Fontaine <axel>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED INVALID    
Severity: major CC: busybox-cvs
Priority: P5    
Version: 1.24.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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.