aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-30 22:51:23 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-30 22:51:23 +0000
commitf24c95f3f37724d5a4e5806ee7e3d30a5546ce44 (patch)
treed532f00d482c3e68169ccdd80f46ea93a5d86deb
parent5371b019d33c1e4e3268dc7662475e28178ba458 (diff)
downloadrspamd-f24c95f3f37724d5a4e5806ee7e3d30a5546ce44.tar.gz
rspamd-f24c95f3f37724d5a4e5806ee7e3d30a5546ce44.zip
Override pidfile setting from command line.
-rw-r--r--src/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 66eb5b6c7..8f7333434 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1110,6 +1110,11 @@ main (gint argc, gchar **argv, gchar **env)
if (! load_rspamd_config (rspamd_main->cfg, TRUE)) {
exit (EXIT_FAILURE);
}
+
+ /* Override pidfile from configuration by command line argument */
+ if (rspamd_pidfile != NULL) {
+ cfg->pid_file = rspamd_pidfile;
+ }
/* Force debug log */
if (is_debug) {