[Oisf-devel] get pidfile config from suricata.yaml if not available in command options

Victor Julien victor at inliniac.net
Tue Nov 29 08:09:29 UTC 2011


Applied, thanks!

On 11/28/2011 10:54 AM, Delta Yeh wrote:
> Here is the v3 patch.
> Thanks for you review.
> 
> 2011/11/28 Victor Julien <victor at inliniac.net>:
>> Can you make the option pid-file, instead pid_file?
>>
>> Also, please have a space after the # on comment lines (not for
>> commented out lines).
>>
>> Finally, another style remark, in:
>>
>> +        if(pid_filename == NULL) {
>> +           if(ConfGet("pid_file", &pid_filename) == 1) {
>> +              SCLogInfo("Use pid file %s from config file.", pid_filename);
>> +           }
>> +        }
>>
>> please add a space between if and (, like so "if ("
>>
>> Can you make these changes?
>>
>> Thanks!
>> Victor
>>
>>
>> On 11/28/2011 10:16 AM, Delta Yeh wrote:
>>> here is the v2 patch.
>>>
>>> 2011/11/28 Victor Julien <victor at inliniac.net>:
>>>> On 11/28/2011 09:59 AM, Delta Yeh wrote:
>>>>> What is the default pidfile  you prefered?
>>>>
>>>> /var/run/suricata.pid would make sense to me.
>>>>
>>>> Cheers,
>>>> Victor
>>>>
>>>>> 2011/11/28 Victor Julien <victor at inliniac.net>:
>>>>>> On 11/28/2011 09:28 AM, Delta Yeh wrote:
>>>>>>> Hi all,
>>>>>>>  The attachment is a patch to get pidfile config from suricata.yaml if
>>>>>>>  --pidfile is not available in command options.
>>>>>>>
>>>>>>> I would be appreciated if someone will review it.
>>>>>>
>>>>>> Great idea.
>>>>>>
>>>>>> Two comments:
>>>>>> - I don't think we need the "Info" message if no file is configure.
>>>>>> - can you add an example (commented out by default) to the suricata.yaml
>>>>>> with a little explanation?
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> --
>>>>>> ---------------------------------------------
>>>>>> Victor Julien
>>>>>> http://www.inliniac.net/
>>>>>> PGP: http://www.inliniac.net/victorjulien.asc
>>>>>> ---------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> Oisf-devel mailing list
>>>>>> Oisf-devel at openinfosecfoundation.org
>>>>>> http://lists.openinfosecfoundation.org/mailman/listinfo/oisf-devel
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> ---------------------------------------------
>>>> Victor Julien
>>>> http://www.inliniac.net/
>>>> PGP: http://www.inliniac.net/victorjulien.asc
>>>> ---------------------------------------------
>>>>
>>>>
>>
>>
>> --
>> ---------------------------------------------
>> Victor Julien
>> http://www.inliniac.net/
>> PGP: http://www.inliniac.net/victorjulien.asc
>> ---------------------------------------------
>>
>>


-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-devel mailing list