[prev in list] [next in list] [prev in thread] [next in thread]
List: cobbler
Subject: Re: I want to do "named reload" instead of "named restart"
From: "Ronald J. Yacketta" <yacketrj () potsdam ! edu>
Date: 2010-06-11 20:39:52
Message-ID: 4C129F18.9010202 () potsdam ! edu
[Download RAW message or body]
On 6/11/2010 4:36 PM, Byron Pezan wrote:
> -----Original Message-----
> From: cobbler-bounces@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@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
>
>
Nice to know :)
I just restart cobbler which forces a recompile seeing that modules are
imported at that time.
>
> > > > _______________________________________________
> > > > cobbler mailing list
> > > > cobbler@lists.fedorahosted.org
> > > > https://fedorahosted.org/mailman/listinfo/cobbler
> > > >
> > > >
> > > _______________________________________________
> > > cobbler mailing list
> > > cobbler@lists.fedorahosted.org
> > > https://fedorahosted.org/mailman/listinfo/cobbler
> > >
> > >
> > _______________________________________________
> > cobbler mailing list
> > cobbler@lists.fedorahosted.org
> > https://fedorahosted.org/mailman/listinfo/cobbler
> >
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic