[Pkg-ganeti-devel] [ganeti] 98/165: Also log daemon shutdown
Apollon Oikonomopoulos
apoikos at moszumanska.debian.org
Tue Aug 11 13:53:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
apoikos pushed a commit to branch master
in repository ganeti.
commit 5dc79421761301b447b691a873209128f9a731e3
Author: Klaus Aehlig <aehlig at google.com>
Date: Fri Apr 10 13:39:10 2015 +0200
Also log daemon shutdown
Signed-off-by: Klaus Aehlig <aehlig at google.com>
Reviewed-by: Helga Velroyen <helgav at google.com>
---
src/Ganeti/Daemon.hs | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Ganeti/Daemon.hs b/src/Ganeti/Daemon.hs
index 7ea25f8..ea6444b 100644
--- a/src/Ganeti/Daemon.hs
+++ b/src/Ganeti/Daemon.hs
@@ -505,7 +505,9 @@ innerMain daemon opts syslog check_result prep_fn exec_fn fd = do
`Control.Exception.catch` handlePrepErr True fd
-- no error reported, we should now close the fd
maybeCloseFd fd
- finally (exec_fn opts check_result prep_result) (finalCleanup pidFile)
+ finally (exec_fn opts check_result prep_result)
+ (finalCleanup pidFile
+ >> logNotice (daemonName daemon ++ " daemon shutdown"))
-- | Daemon prepare error handling function.
handlePrepErr :: Bool -> Maybe Fd -> IOError -> IO a
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git
More information about the Pkg-ganeti-devel
mailing list