]> source.dussan.org Git - rspamd.git/commitdiff
Override pidfile setting from command line.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Nov 2013 22:51:23 +0000 (22:51 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 30 Nov 2013 22:51:23 +0000 (22:51 +0000)
src/main.c

index 66eb5b6c79dab812b48138d5fc09444a1f18f0bf..8f73334349d76e472274a185da2aed60eecf5e45 100644 (file)
@@ -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) {