Mercurial > masqmail
comparison src/masqmail.c @ 155:b5ab9cb2f18a
shut down on errors reading config file
while reading config file, log to log file
note: this breaks after SIGHUP
author | meillo@marmaro.de |
---|---|
date | Thu, 08 Jul 2010 09:43:27 +0200 |
parents | 5ec5e6637049 |
children | 5b621742b2e7 |
comparison
equal
deleted
inserted
replaced
154:fc1e5aa286ed | 155:b5ab9cb2f18a |
---|---|
639 setuid(conf.orig_uid); | 639 setuid(conf.orig_uid); |
640 setgid(conf.orig_gid); | 640 setgid(conf.orig_gid); |
641 } | 641 } |
642 } | 642 } |
643 | 643 |
644 read_conf(conf_file); | 644 conf.log_dir = LOG_DIR; |
645 logopen(); | |
646 if (!read_conf(conf_file)) { | |
647 logwrite(LOG_ALERT, "SHUTTING DOWN due to problems reading config\n"); | |
648 exit(5); | |
649 } | |
650 logclose(); | |
645 | 651 |
646 if (do_queue) | 652 if (do_queue) |
647 conf.do_queue = TRUE; | 653 conf.do_queue = TRUE; |
648 if (do_verbose) | 654 if (do_verbose) |
649 conf.do_verbose = TRUE; | 655 conf.do_verbose = TRUE; |