core: rework reboot parameter logic a bit
authorLennart Poettering <lennart@poettering.net>
Thu, 7 Apr 2016 14:53:37 +0000 (16:53 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 Apr 2016 11:43:32 +0000 (13:43 +0200)
commit27c06cb516c3b87c34f2a1c2c227152997d05c8c
treea778f0a66e75528b6ee47e2b0c82668352176127
parent8612da973d30c5a9530fa1b6b3d449147b5a3324
core: rework reboot parameter logic a bit

Always warn if something fails, and clarify that the involved utility functions
do so in their name.

Drop the REBOOT_PARAM_FILE macro. We don't do this for other flag file paths
like this, so don't do this for this one either. The path isn't configurable
anyway, hence let's make this easier to read by avoiding this one indirection.
src/basic/def.h
src/basic/util.c
src/basic/util.h
src/core/failure-action.c
src/core/shutdown.c
src/systemctl/systemctl.c