LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-14-2010, 10:26 AM   #1
zensunni
Member
 
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:
http://embraceubuntu.com/2005/09/07/...run-at-bootup/

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
zensunni
Member
 
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.

Code:
#!/bin/bash

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

for (( ; ; ))
do

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

done
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
bmarx
Member
 
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:

http://www.brighthub.com/computing/l...39504.aspx?p=3

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"
 
  


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 PM.

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