-----Original Message-----
From: cobbler-bounces(a)lists.fedorahosted.org
[mailto:cobbler-bounces@lists.fedorahosted.org] On Behalf Of Jeremy Hansen
Sent: Friday, June 11, 2010 3:58 PM
To: cobbler mailing list
Subject: Re: I want to do "named reload" instead of "named restart" on
a cobbler sync
On Jun 11, 2010, at 12:50 PM, Ronald J. Yacketta wrote:
On 6/11/2010 3:49 PM, Jeremy Hansen wrote:
> On Jun 11, 2010, at 12:41 PM, Ronald J. Yacketta wrote:
>
>
>> On 6/11/2010 3:24 PM, Jeremy Hansen wrote:
>>
>>> I'm running 2.0.3. Is there any way I can change the option for the
service to a reload instead of restart?
>>>
>>> Thanks
>>> -jeremy
>>> _______________________________________________
>>> cobbler mailing list
>>> cobbler(a)lists.fedorahosted.org
>>>
https://fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>
>> This would require a code change (patch) to sync_post_restart_services.py
>>
>> look for:
>> rc = utils.subprocess_call(logger, "/etc/rc.d/init.d/named restart",
>> shell=True)
>>
>>
> Thanks. Is it enough to change the .py python file or do I have to do some kind of
rebuild? (sorry, my development skills are pretty lame) I can patch the source and build
a new rpm, but I'd like to test this in place first if that's possible.
>
> Thanks
>
>
You can modify the py file, but it might cause issues when it comes time
to upgrade cobller, you will more than likely get a .rpmnew file for
that py file.
I just tried this and it's still doing a restart. I see the pyc and pyo files which
led me to believe I need to "compile" the py file.
Thanks
-jeremy
I've made a couple changes to the python scripts we use in our Cobbler install. I
typically run this string of commands after making manual changes to the python scripts:
---
cd /usr/lib/python2.4/site-packages/cobbler/modules/
python -m compileall .
cobbler sync
service cobblerd restart
---
byron
>> _______________________________________________
>> cobbler mailing list
>> cobbler(a)lists.fedorahosted.org
>>
https://fedorahosted.org/mailman/listinfo/cobbler
>>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler