From f24c95f3f37724d5a4e5806ee7e3d30a5546ce44 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 30 Nov 2013 22:51:23 +0000 Subject: [PATCH] Override pidfile setting from command line. --- src/main.c | 5 +++++ 1 file changed, 5 insertions(+) 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) { -- 2.39.5