mirror of
https://github.com/troglobit/finit.git
synced 2026-11-17 19:30:29 +00:00
api: acknowledge reboot, halt, and poweroff
Finit carried out a reboot, halt, or poweroff requested over the initctl socket, but replied with a NACK. The command printed an empty line and fell back to signalling PID 1. The result was never set from the action taken. Return what shutdown_now() returns. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
2 files changed
+4
-1
No files matched your search
@@ -182,6 +182,9 @@ All relevant changes are documented in this file.
|
||||
- Fix `initctl stop` of a forking service before it had written its PID
|
||||
file. The PID file showing up later undid the stop and the service was
|
||||
reported running. Now the late daemon is stopped instead
|
||||
- Fix `reboot`, `halt`, and `poweroff` being refused by Finit over the
|
||||
initctl socket, although carried out. The commands then also fell
|
||||
back to signalling PID 1
|
||||
- Fix a command whose name starts like a service option, e.g. `logger` or
|
||||
`pidof`. It was taken as the `log` or `pid` option and the next argument
|
||||
ran as the command, which also broke the `logger` example in finit.conf(5)
|
||||
|
||||
Reference in new issue
Block a user