summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-07-08 10:37:15 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-07-09 15:00:57 -0400
commit5ee74e2b7c0cfc30f7209b2b81a34f4f4e15bad7 (patch)
treede508a1e7526281197100698e953f7575a73fca9 /src
parent5c705137ea853613318a29f0cd760688ab4daef3 (diff)
downloadsssd-5ee74e2b7c0cfc30f7209b2b81a34f4f4e15bad7.tar.gz
sssd-5ee74e2b7c0cfc30f7209b2b81a34f4f4e15bad7.tar.bz2
sssd-5ee74e2b7c0cfc30f7209b2b81a34f4f4e15bad7.zip
Add log notifications for startup and shutdown.
Diffstat (limited to 'src')
-rw-r--r--src/util/server.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/util/server.c b/src/util/server.c
index d55e971b..39177d38 100644
--- a/src/util/server.c
+++ b/src/util/server.c
@@ -228,7 +228,8 @@ void sig_term(int sig)
kill(-getpgrp(), SIGTERM);
}
#endif
- exit(0);
+ sss_log(SSS_LOG_INFO, "Shutting down");
+ exit(0);
}
#ifndef HAVE_PRCTL
@@ -463,6 +464,8 @@ int server_setup(const char *name, int flags,
}
}
+ sss_log(SSS_LOG_INFO, "Starting up");
+
DEBUG(3, ("CONFDB: %s\n", conf_db));
if (flags & FLAGS_INTERACTIVE) {