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.

Force Close Midnight Commander via Stop/Shutdown Script?

Featured Replies

I seem to always have Stop/Shutdowns hang due to "mc" being open. I assume this is midnight commander. I always confirm that I have no open midnight commander sessions, but it still stays open. The second I kill the PID then the server completes the stop/shutdown. 

 

Is there a way to force close midnight commander via a Shutdown / Stop script?

  • Author

"killall -SIGKILL mc" seems to work. Any issue using that?

4 hours ago, newoski said:

Any issue using that?

Only if a shutdown is forced when a file move is still in progress in the background.

  • Author
Just now, JonathanM said:

Only if a shutdown is forced when a file move is still in progress in the background.

That would just leave a partial file, right? Any way to search for those and remove? 

Just now, newoski said:

That would just leave a partial file, right? Any way to search for those and remove? 

I'm not aware of a quick method. The only thing I can think of would be file compare that looks at identical named files that don't binary match.

 

Depending on the paths used in the mc session you could end up with quite a mess.

  • Author
4 minutes ago, JonathanM said:

I'm not aware of a quick method. The only thing I can think of would be file compare that looks at identical named files that don't binary match.

 

Depending on the paths used in the mc session you could end up with quite a mess.

 

What is the right way to go about figuring out why midnight commander is getting stuck open, then?

  • Author

I only ever access it via browser. Desktop computer or mobile phone. But I confirm that both are closed out and MC stays open when shutting down or stopping server

1 hour ago, newoski said:

I only ever access it via browser. Desktop computer or mobile phone. But I confirm that both are closed out and MC stays open when shutting down or stopping server

I think I remember some issue with browser sessions not closing properly, perhaps try using Putty on the desktop to SSH instead and see how it goes. If you really need console from the mobile phone, there are several ssh clients available, I've not tried any so don't have any specific recommendations. 

Try the Stop Shell plugin?  Not sure if it'll help in the situation but can't hurt

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.