Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[runlevel] Expect systemctl to reside in /usr/bin. Fixes JB#50483
DSME expects to find /bin/systemctl to perform systemd style shutdown / reboot. At some stage the binary location changed, which made DSME fallback to using telinit. Which systemd does support, but shutdown behavior is slightly different. Which leads to obscure problems with determining boot reason during the next bootup / leaves unwanted RTC wakeup alarms active. Expect systemctl to reside in /usr/bin, but for backwards compatibility allow it to reside in /bin too. Use wrapper for system() for equating child process getting killed by SIGTERM with it making an exit(0) to avoid false negatives for initiating shutdown / reboot. Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
- Loading branch information
Showing
1 changed file
with
98 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters