diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-21 19:21:37 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-12-21 19:21:37 +0300 |
commit | a079dac866ac4e166a8d6e40f978af74e8398583 (patch) | |
tree | d5cf47d5b7bf9414748c11d313251644dacc3be0 /src/cfg_file.y | |
parent | c6e6ea88a2e03609b0be013d2df0de1c6062712f (diff) | |
download | rspamd-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.y | 5 |
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; + } } ; |