From c31f16b27ec46f268e8cb92300e9932432eaae45 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Mon, 6 Oct 2008 22:27:15 +0200 Subject: [PATCH] Logging for pfix-srsd too. Signed-off-by: Florent Bruneau --- pfix-srsd/main-srsd.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pfix-srsd/main-srsd.c b/pfix-srsd/main-srsd.c index 9f1bdd3..037a458 100644 --- a/pfix-srsd/main-srsd.c +++ b/pfix-srsd/main-srsd.c @@ -44,6 +44,7 @@ #include "server.h" #define DAEMON_NAME "pfix-srsd" +#define DAEMON_VERSION "0.1" #define DEFAULT_ENCODER_PORT 10001 #define DEFAULT_DECODER_PORT 10002 #define RUNAS_USER "nobody" @@ -307,11 +308,17 @@ int main(int argc, char *argv[]) } } + if (!daemonize) { + log_syslog = false; + } + if (argc - optind != 2) { usage(); return EXIT_FAILURE; } + info("starting %s v%s...", DAEMON_NAME, DAEMON_VERSION); + config.domain = argv[optind]; config.srs = srs_read_secrets(argv[optind + 1]); if (!config.srs -- 2.20.1