Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-14-2010, 10:26 AM   #1
Registered: Feb 2008
Posts: 45

Rep: Reputation: 0
Ubuntu hangs on shutdown

When I shutdown, Ubuntu hangs at that shutting-down screen. The one with five dots under the Ubuntu logo that change color to show you it's thinking.

There was an article I followed on adding a script to the startup process. That was one of the last system changes I was doing before this happened.

Here's the article:

When I ran the "update-rc.d FOO defaults" command, it seemed to work, but I got an error. I REALLY wish I would have written that error down.

At that shut-down screen, is there a way to switch to a terminal to see what process is holding up the shutdown? That might be the way to go about it.

I'm using 10.04 LTS Ubuntu.

Last edited by zensunni; 11-14-2010 at 10:42 AM.
Old 11-14-2010, 10:30 AM   #2
Registered: Feb 2008
Posts: 45

Original Poster
Rep: Reputation: 0
I just realized I should post my script...
That could definately have something to do with it.


export DISPLAY=:0.0;
export  XAUTHORITY=$(ps h $(pidof X) | awk '{print $11}');

for (( ; ; ))

   sleep 3600
   /usr/bin/xmessage -button ok -center "Hourly Reminder"

BTW, I tried killing the "hourly reminder" process & then the sleep process before shutdown and I still got the hang, though.

Last edited by zensunni; 11-14-2010 at 10:35 AM.
Old 11-14-2010, 11:06 AM   #3
Registered: Dec 2004
Distribution: Slackware, Arch, FreeBSD
Posts: 202

Rep: Reputation: 34
You can use the below link to see how to get a more verbose output from startup/shutdown:

But the solution to your problem seems to be to remove that script that you added in from the shutdown scripts. Ubuntu is most likely executing that script with "stop" as an argument on shutdown, and expects the script to handle this properly.

You could also try running the update-rc.d command for the script and specifying only the startup options as opposed to "defaults". See "man update-rc.d"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] shutdown hangs schuurs Linux - Software 2 10-26-2010 01:20 AM
Hangs on shutdown dcroxton Ubuntu 1 08-24-2010 09:57 AM
Ubuntu 7.10 systems hangs, no keyboard, can't shutdown red hat flyfisherman Ubuntu 11 01-07-2008 01:42 PM
10.0 hangs on shutdown riseringseeker Mandriva 5 09-22-2004 03:42 PM
FC 2 Hangs On Shutdown sandgroper Fedora 5 07-06-2004 11:32 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration