LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Combination of nodm and fluxbox -- cannot close fluxbox or shutdown properly (https://www.linuxquestions.org/questions/linux-general-1/combination-of-nodm-and-fluxbox-cannot-close-fluxbox-or-shutdown-properly-941970/)

aswam 04-26-2012 06:50 PM

Combination of nodm and fluxbox -- cannot close fluxbox or shutdown properly
 
Hi,

I've been working on a respin of Debian Live, and have installed nodm (to login automatically) and fluxbox (as my window manager).

Now, i'm not sure if this is normal behaviour, but when I click on exit in the fluxbox menu, fluxbox immediately restarts. Could this be due to nodm, and how would I fix it?

Again, the same problem occurs when I type in the shutdown command in the terminal -- it goes to a terminal screen, then shows fluxbox again, then shuts down with a message saying it was not able to terminate all processes. Should I consider stoping nodm or x each time I want to shutdown, before I type the shutdown command?

One last thing, reboot works fine. No issue with nodm or fluxbox when I reboot the system from a x terminal. But this still obviously leaves the shutdown issue.

Thanks in advance,
aswam

aus9 04-29-2012 06:56 AM

hi I am not a programmer so try at own risk

1) create a script to both things at once

contents of /usr/local/bin/fluxstop (call it what you like)

#!/bin/sh
/etc/init.d/nodm stop
/sbin/shutdown -h now

Code:

sudo su
chmod 755 /usr/local/bin/fluxstop  (to make it executable for all users)


(and to test run)

fluxstop



2) I use nodm but not with flux and yes thats normal for nodm

3) if it works try to find the config for fluxbox maybe in /etc and look for the line that reads something like

halt /sbin/shutdown -h now

if it exists change it to

halt /usr/local/bin/fluxstop


good luck

aswam 05-01-2012 06:20 PM

Thanks aus9. Seems to work fine now!


All times are GMT -5. The time now is 09:52 AM.