diff options
author | pjd <pjd@FreeBSD.org> | 2011-03-21 08:38:24 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-03-21 08:38:24 +0000 |
commit | ee6f63ce1774533a3602145d9627d54d14d70769 (patch) | |
tree | 454aae47fbb1d03824bc090bbaa32d6fb3e9cb24 /sbin | |
parent | e06bfb0a1b558adcf3e1df4c2d54cb2f3d7541e6 (diff) | |
download | FreeBSD-src-ee6f63ce1774533a3602145d9627d54d14d70769.zip FreeBSD-src-ee6f63ce1774533a3602145d9627d54d14d70769.tar.gz |
Log when we start hooks checking and when we execute a hook.
MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/hooks.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sbin/hastd/hooks.c b/sbin/hastd/hooks.c index 5692565..2cc8b68 100644 --- a/sbin/hastd/hooks.c +++ b/sbin/hastd/hooks.c @@ -288,6 +288,8 @@ hook_check(void) assert(hooks_initialized); + pjdlog_debug(1, "Checking hooks."); + /* * Report about processes that are running for a long time. */ @@ -363,6 +365,8 @@ hook_execv(const char *path, va_list ap) if (hp == NULL) return; + pjdlog_debug(1, "Executing hook: %s", hp->hp_comm); + pid = fork(); switch (pid) { case -1: /* Error. */ |