Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » stopping via osgi> exit causes reboot via watchdog(Stopping kura via the "exit" command in the osgi console results in the machine rebooting shortly after.)
stopping via osgi> exit causes reboot via watchdog [message #1746393] Fri, 28 October 2016 05:27 Go to next message
paul stanton is currently offline paul stantonFriend
Messages: 87
Registered: July 2009
Member
I've logged this issue: https://github.com/eclipse/kura/issues/684

I wanted to put this to the forum anyway, in case someone can correct me if i am mistaken or direct me to a way of stopping the watchdog before exiting?

thanks, paul.
Re: stopping via osgi> exit causes reboot via watchdog [message #1746394 is a reply to message #1746393] Fri, 28 October 2016 05:32 Go to previous messageGo to next message
paul stanton is currently offline paul stantonFriend
Messages: 87
Registered: July 2009
Member
Turns out, stopping the watchdog bundle, eg "stop 58" prior to calling "exit" resolves the issue. However this raises a larger issue of there not being an easy way to cleanly shut down kura (easily). I would expect "exit" to cleanly exit, whereby all components are "deactivated" or "stopped" before the process exits. Does this feature exist? I believe it should...
Re: stopping via osgi> exit causes reboot via watchdog [message #1746430 is a reply to message #1746393] Fri, 28 October 2016 14:30 Go to previous messageGo to next message
Pierre Pitiot is currently offline Pierre PitiotFriend
Messages: 16
Registered: April 2015
Junior Member
Hello,
we just realized that there was a nasty bug in watchdog service: when the watchdog is disabled the thread is terminated before having disabled the watchdog. I will fix it in the next release.

Concerning osgi exit command it is working like a kill and do not stop the services cleanly.You should use osgi>shutdown or call /etc/init.d/kura stop. In this case the watchdog will be disabled correctly.

Regards
--Pierre
Re: stopping via osgi> exit causes reboot via watchdog [message #1746567 is a reply to message #1746430] Tue, 01 November 2016 03:23 Go to previous messageGo to next message
paul stanton is currently offline paul stantonFriend
Messages: 87
Registered: July 2009
Member
Pierre Pitiot wrote on Sat, 29 October 2016 01:30
osgi>shutdown



this doesn't stop the kura process
Re: stopping via osgi> exit causes reboot via watchdog [message #1748317 is a reply to message #1746567] Tue, 22 November 2016 07:42 Go to previous messageGo to next message
paul stanton is currently offline paul stantonFriend
Messages: 87
Registered: July 2009
Member
"osgi> shutdown" is doing some funny things - like deactivating and then activating Components.
Re: stopping via osgi> exit causes reboot via watchdog [message #1748393 is a reply to message #1748317] Tue, 22 November 2016 17:21 Go to previous messageGo to next message
David Woodard is currently offline David WoodardFriend
Messages: 420
Registered: July 2014
Senior Member
Hi Paul,

Could you use "/etc/init.d/kura stop" for terminating the process? This essentially stops bundle 0 (the system bundle) then allows the start-stop-daemon to shutdown the process based on the PID file.

I would have to check on what is happening with "shutdown", it is not something I regularly use in Kura.

Thanks,
--Dave
Re: stopping via osgi> exit causes reboot via watchdog [message #1783832 is a reply to message #1748393] Mon, 19 March 2018 01:11 Go to previous message
paul stanton is currently offline paul stantonFriend
Messages: 87
Registered: July 2009
Member
Just a follow up - we routinely use:

osgi> ss watch
id      State       Bundle
77      ACTIVE      org.eclipse.kura.linux.watchdog_1.0.201
osgi> stop 77
osgi> exit


this process avoids kura restarting.

Previous Topic:Command Service
Next Topic:Logfile per bundle
Goto Forum:
  


Current Time: Thu Apr 25 11:13:33 GMT 2024

Powered by FUDForum. Page generated in 0.03169 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top