Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context

2017-10-15 Thread Tom Pantelis
> It used to restart bundle 0. Not sure why that was changed > > > > Looks like this was inadvertently changed by https://git.opendaylight.org/ > gerrit/#/c/62451/ - it used to be > > bundleContext.getBundle(0).stop(); > > > > If you want to push a

Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context

2017-10-15 Thread Muthukumaran K
thukumaran K; controller-dev@lists.opendaylight.org<mailto:controller-dev@lists.opendaylight.org>; integration-...@lists.opendaylight.org<mailto:integration-...@lists.opendaylight.org> Subject: Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context Hey Muthu,

Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context

2017-10-13 Thread Daniel Farrell
Hey Muthu, Yes, I think you should take a look at the systemd configuration we ship in ODL's packages. As far as I know it does a good job of starting/stopping/restarting ODL's service. https://git.opendaylight.org/gerrit/gitweb?p=integration/packaging.git;a=blob;f=packages/rpm/unitfiles/opendayl

Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context

2017-10-13 Thread Tom Pantelis
by https://git.opendaylight.org/gerrit/#/c/62451/ - it used to be bundleContext.getBundle(0).stop(); If you want to push a patch to fix it, I'll merge it. > > >> >> Regards >> >> Muthu >> >> >> >> >> >> >> >

Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context

2017-10-13 Thread Tom Pantelis
> Muthu > > > > > > > > *From:* Daniel Farrell [mailto:dfarr...@redhat.com] > *Sent:* Friday, October 13, 2017 6:19 AM > *To:* Jamo Luhrsen; Muthukumaran K; controller-dev@lists.opendaylight.org; > integration-...@lists.opendaylight.org > *Subject:* Re: [contro

Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context

2017-10-12 Thread Muthukumaran K
13, 2017 6:19 AM To: Jamo Luhrsen; Muthukumaran K; controller-dev@lists.opendaylight.org; integration-...@lists.opendaylight.org Subject: Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context Hey Muthu, Yes, I think you should take a look at the systemd configuration we ship

Re: [controller-dev] Best way to gracefully shutdown Karaf in ODL context

2017-10-12 Thread Jamo Luhrsen
+Daniel and Integration-dev, Daniel, does our rpm package and the systemd work you did for it answer any of Muthu's questions below? I'm assuming it *IS* the answer, but you will know better. Thanks, JamO On 10/12/2017 04:56 AM, Muthukumaran K wrote: > Hi, > > * * > > *Context* : Figuring out

[controller-dev] Best way to gracefully shutdown Karaf in ODL context

2017-10-12 Thread Muthukumaran K
Hi, Context : Figuring out the best possible way to gracefully shutdown Karaf process using standard Karaf commands. This would be required because framework-level shutdown-sequence in Karaf would give opportunity framework to properly execute bundle lifecycle listeners. What I mean is - abr