[et-mgmt-tools] cobbler_syslogd question

Michael DeHaan mdehaan at redhat.com
Tue Mar 27 20:47:44 UTC 2007


Jim Wildman wrote:
> Well, I was going to submit this as a separate bug, but since you posted
> it here..
>
> On Tue, 27 Mar 2007, Michael DeHaan wrote:
>
>> diff --git a/cobbler/syslog_watcher.py b/cobbler/syslog_watcher.py
>> index 64dd802..4846b3e 100644
>> --- a/cobbler/syslog_watcher.py
>> +++ b/cobbler/syslog_watcher.py
>> @@ -22,10 +22,11 @@ def main():
>> port = settings.syslog_port
>>
>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>> - try:
>> - s.bind((socket.gethostname(), port))
>> - except:
>> - s.bind("127.0.0.1", port))
>> + #try:
>> + # s.bind((socket.gethostname(), port))
>> + #except:
>> + # s.bind("127.0.0.1", port))
> ^^ one of these must die
>> + s.bind(("0.0.0.0", port))
>>
>> buf = 1024
>>
>>
>> --Michael
>>
>>
>>
>>
>> _______________________________________________
>> et-mgmt-tools mailing list
>> et-mgmt-tools at redhat.com
>> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>>
>
> ------------------------------------------------------------------------
> Jim Wildman, CISSP, RHCE jim at rossberry.com http://www.rossberry.com
> "Society in every state is a blessing, but Government, even in its best
> state, is a necessary evil; in its worst state, an intolerable one."
> Thomas Paine
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Bad testing on my part -- those running 0.4.5 andwanting syslog to work, 
note the missing paren. Preferably just apply the "0.0.0.0" fix...

--Michael




More information about the et-mgmt-tools mailing list