From: Vsevolod Stakhov Date: Sat, 30 Nov 2013 22:51:23 +0000 (+0000) Subject: Override pidfile setting from command line. X-Git-Tag: 0.6.1~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f24c95f3f37724d5a4e5806ee7e3d30a5546ce44;p=rspamd.git Override pidfile setting from command line. --- 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) {