diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-30 22:51:23 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2013-11-30 22:51:23 +0000 |
commit | f24c95f3f37724d5a4e5806ee7e3d30a5546ce44 (patch) | |
tree | d532f00d482c3e68169ccdd80f46ea93a5d86deb | |
parent | 5371b019d33c1e4e3268dc7662475e28178ba458 (diff) | |
download | rspamd-f24c95f3f37724d5a4e5806ee7e3d30a5546ce44.tar.gz rspamd-f24c95f3f37724d5a4e5806ee7e3d30a5546ce44.zip |
Override pidfile setting from command line.
-rw-r--r-- | src/main.c | 5 |
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) { |