Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Gracefully Shutting down a docker

Featured Replies

I have a problem where stopping a docker from the UnRaid UI forces a kill after 10 seconds on all processes, meaning the service doesn't finish doing what it should be doing:

 

*** Shutting down runit daemon (PID 12)...
*** Killing all processes...
2015-10-17 14:22:26.321 [iNFO ] [penhab.io.rest.RESTApplication] - Stopped REST API
*** Not all processes have exited in time. Forcing them to exit.

 

Any idea of the best way to approach this problem so the docker doesn't just kill all the processes, but waits for them to finish?

Thanks

C

  • 4 weeks later...
  • Author

No-body else has encountered this problem?

  • Community Expert

Where are you seeing this? In the log of a specific docker? Which docker?

  • Author

I'm seeing it when I exec bash into the docker, then shut it down from the unraid UI.

It's my own docker:

https://github.com/christianwaite/dockerapp-openhab

 

Hasn't been causing problems, but I want to use a db4o database and that will corrupt it if it's not given enough time to shut down. There's a post about it here:

https://labs.ctl.io/gracefully-stopping-docker-containers/

 

But I don't know how unraid handles shutting down dockers.

Thanks

Christian

  • Community Expert

I'm seeing it when I exec bash into the docker, then shut it down from the unraid UI...

I think that's your problem. Your bash session is hanging the docker. You need to exit your bash session before shutting the docker down from unRAID.
  • Author

Erm.. I think the whole reason I knew about this was that it was quitting before the application I'm running had a chance to remove the lock file, which was happening without me exec'd into bash. I'll test this tonight, but I'm pretty confident it's still doing it if I'm not in the session.

 

Thanks for the help

Christian

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.