summaryrefslogtreecommitdiff
path: root/ctdb/server/ctdb_daemon.c
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-04-22 13:52:04 +1000
committerAmitay Isaacs <amitay@gmail.com>2013-04-22 13:58:36 +1000
commit34718078751754f1463dafc13a92062635baea27 (patch)
tree9b055b6f6345563a5a331d213d48c58d9b7ac6c2 /ctdb/server/ctdb_daemon.c
parent823edbf6fe26bcfa934c9aa46d9472b1a9abf36a (diff)
downloadsamba-34718078751754f1463dafc13a92062635baea27.tar.gz
ctdbd: Log PID file creation and removal at NOTICE level
Unexpected removal of this file can have serious consequences, so it is best if this is logged at the default level. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit bfed6a8d1771db3401d12b819204736c33acb312)
Diffstat (limited to 'ctdb/server/ctdb_daemon.c')
-rw-r--r--ctdb/server/ctdb_daemon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/server/ctdb_daemon.c b/ctdb/server/ctdb_daemon.c
index 17902b35e79..d2aae5a010f 100644
--- a/ctdb/server/ctdb_daemon.c
+++ b/ctdb/server/ctdb_daemon.c
@@ -1109,8 +1109,8 @@ static void ctdb_remove_pidfile(void)
{
if (ctdbd_pidfile != NULL && !ctdb_is_child_process()) {
if (unlink(ctdbd_pidfile) == 0) {
- DEBUG(DEBUG_INFO, ("Removed PID file %s\n",
- ctdbd_pidfile));
+ DEBUG(DEBUG_NOTICE, ("Removed PID file %s\n",
+ ctdbd_pidfile));
} else {
DEBUG(DEBUG_WARNING, ("Failed to Remove PID file %s\n",
ctdbd_pidfile));
@@ -1132,7 +1132,7 @@ static void ctdb_create_pidfile(pid_t pid)
fprintf(fp, "%d\n", pid);
fclose(fp);
- DEBUG(DEBUG_INFO, ("Created PID file %s\n", ctdbd_pidfile));
+ DEBUG(DEBUG_NOTICE, ("Created PID file %s\n", ctdbd_pidfile));
atexit(ctdb_remove_pidfile);
}
}