summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d25cf39)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
#include "server.h"
#define DAEMON_NAME "pfix-srsd"
#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"
#define DEFAULT_ENCODER_PORT 10001
#define DEFAULT_DECODER_PORT 10002
#define RUNAS_USER "nobody"
+ if (!daemonize) {
+ log_syslog = false;
+ }
+
if (argc - optind != 2) {
usage();
return EXIT_FAILURE;
}
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
config.domain = argv[optind];
config.srs = srs_read_secrets(argv[optind + 1]);
if (!config.srs