projects
/
apps
/
pfixtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve logging again.
[apps/pfixtools.git]
/
common
/
common.c
diff --git
a/common/common.c
b/common/common.c
index
3d2862f
..
aa9e5ea
100644
(file)
--- a/
common/common.c
+++ b/
common/common.c
@@
-46,6
+46,7
@@
sig_atomic_t sighup = false;
bool daemon_process = true;
int log_level = LOG_INFO;
bool daemon_process = true;
int log_level = LOG_INFO;
+bool log_syslog = false;
static FILE *pidfile = NULL;
static FILE *pidfile = NULL;
@@
-296,7
+297,7
@@
extern exitcall_t __madexit[];
static void common_shutdown(void)
{
static void common_shutdown(void)
{
- if (daemon_process) {
+ if (daemon_process
&& log_syslog
) {
info("stopping...");
}
pidfile_close();
info("stopping...");
}
pidfile_close();