[haiku-development] Re: Rely on launch daemon to shutdown a service
- From: "Alexander G. M. Smith" <agmsmith@xxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Thu, 07 Apr 2016 17:32:16 -0400 EDT
Axel Dörfler wrote on Tue, 5 Apr 2016 09:10:57 +0200:
You can programmatically stop the launch_daemon from relaunching it
again. In the future, this will also allow to quit it (right now, this
only work with user level apps).
Have a look at BLaunchRoster::Stop() [1].
Which reminds me, for programs that crash, before restarting them is there a
way to get a bug report log file without having someone around to hit the
debugger button? If not, that could be an option in the launch daemon
settings, or maybe a new application flag. Also, a crash could be a launch
daemon trigger event to run some other program.
By the way, I did try using hey, but the debug alert box is in its own
little world, with no BApplication to send messages to the Report button.
- Alex
Other related posts: