summaryrefslogtreecommitdiff
path: root/src/shutdown.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-15 00:30:11 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-15 00:30:11 +0100
commit83cc030fadf71d63d488cf9015275f9e5a02e2cc (patch)
tree4bfa13d11be343cba555e9b629e16a0edb4c4c41 /src/shutdown.c
parent3036c489fa503031acb9a2fba1f3537cbe59ae9e (diff)
shutdown: execute all binaries in /lib/systemd/system-shutdown as last step before invoking reboot()
Diffstat (limited to 'src/shutdown.c')
-rw-r--r--src/shutdown.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shutdown.c b/src/shutdown.c
index 94deb85441..23b9f1b545 100644
--- a/src/shutdown.c
+++ b/src/shutdown.c
@@ -336,6 +336,8 @@ int main(int argc, char *argv[]) {
if (retries >= FINALIZE_ATTEMPTS)
log_error("Too many interations, giving up.");
+ execute_directory(SYSTEM_SHUTDOWN_PATH, NULL, NULL);
+
sync();
if (cmd == LINUX_REBOOT_CMD_KEXEC) {