From 83cc030fadf71d63d488cf9015275f9e5a02e2cc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 15 Feb 2011 00:30:11 +0100 Subject: shutdown: execute all binaries in /lib/systemd/system-shutdown as last step before invoking reboot() --- src/shutdown.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shutdown.c') 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) { -- cgit v1.2.3-54-g00ecf