aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_file.y
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-21 19:21:37 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-21 19:21:37 +0300
commita079dac866ac4e166a8d6e40f978af74e8398583 (patch)
treed5cf47d5b7bf9414748c11d313251644dacc3be0 /src/cfg_file.y
parentc6e6ea88a2e03609b0be013d2df0de1c6062712f (diff)
downloadrspamd-a079dac866ac4e166a8d6e40f978af74e8398583.tar.gz
rspamd-a079dac866ac4e166a8d6e40f978af74e8398583.zip
* Add ability to specify pid file from command line (for rc scripts)
* Do not use flock directly in pidfile handling
Diffstat (limited to 'src/cfg_file.y')
-rw-r--r--src/cfg_file.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cfg_file.y b/src/cfg_file.y
index a4f7034d0..91c40a734 100644
--- a/src/cfg_file.y
+++ b/src/cfg_file.y
@@ -122,7 +122,10 @@ tempdir :
pidfile :
PIDFILE EQSIGN QUOTEDSTRING {
- cfg->pid_file = $3;
+ if (cfg->pid_file == NULL) {
+ /* Allow override this value from command line */
+ cfg->pid_file = $3;
+ }
}
;