LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-03-2011, 04:33 PM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Rep: Reputation: 51
restart doesn't work


hi

I cannot restart my squeeze as a root user.
I try:
Code:
# shutdown -r now

Broadcast message from root@WZHlinux2 (pts/0) (Fri Jun  3 23:29:33 2011):

The system is going down for reboot NOW!

# init 6
but nothing happens.

BTW:
Code:
# shutdown -h now
and
Code:
# init0
works.


What's wrong?

Last edited by cccc; 06-03-2011 at 04:39 PM.
 
Old 06-03-2011, 04:39 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
Is there anything in the syslog files to indicate what is happening and where it is failing?
 
Old 06-03-2011, 07:20 PM   #3
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by pljvaldez View Post
Is there anything in the syslog files to indicate what is happening and where it is failing?
just this and nothing happens:
Code:
# tail -f /var/log/syslog

Broadcast message from root@WZHlinux2 (pts/1) (Sat Jun  4 02:18:57 2011):

The system is going down for reboot NOW!
Jun  4 02:18:57 WZHlinux2 init: Switching to runlevel: 6
 
Old 06-03-2011, 09:20 PM   #4
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
what's the output of

ls -l /etc/rc6.d/
 
Old 06-04-2011, 08:21 AM   #5
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by almatic View Post
what's the output of

ls -l /etc/rc6.d/
Code:
# ls -l /etc/rc6.d/
total 4
lrwxrwxrwx 1 root root  20 May  2 13:56 K01alsa-utils -> ../init.d/alsa-utils
lrwxrwxrwx 1 root root  17 May  2 13:56 K01anacron -> ../init.d/anacron
lrwxrwxrwx 1 root root  13 May  2 13:56 K01atd -> ../init.d/atd
lrwxrwxrwx 1 root root  14 May  2 13:56 K01fuse -> ../init.d/fuse
lrwxrwxrwx 1 root root  14 May  2 13:56 K01gdm3 -> ../init.d/gdm3
lrwxrwxrwx 1 root root  20 May  2 13:56 K01kerneloops -> ../init.d/kerneloops
lrwxrwxrwx 1 root root  20 May  2 13:56 K01kexec-load -> ../init.d/kexec-load
lrwxrwxrwx 1 root root  15 May  2 13:56 K01saned -> ../init.d/saned
lrwxrwxrwx 1 root root  29 May  2 13:56 K01unattended-upgrades -> ../init.d/unattended-upgrades
lrwxrwxrwx 1 root root  17 May  2 13:56 K01urandom -> ../init.d/urandom
lrwxrwxrwx 1 root root  18 May 29 14:36 K02sendsigs -> ../init.d/sendsigs
lrwxrwxrwx 1 root root  17 May 29 14:36 K03rsyslog -> ../init.d/rsyslog
lrwxrwxrwx 1 root root  22 May 29 14:36 K04umountnfs.sh -> ../init.d/umountnfs.sh
lrwxrwxrwx 1 root root  20 May 29 14:36 K05networking -> ../init.d/networking
lrwxrwxrwx 1 root root  20 May 29 14:36 K05nfs-common -> ../init.d/nfs-common
lrwxrwxrwx 1 root root  20 May 29 14:36 K06hwclock.sh -> ../init.d/hwclock.sh
lrwxrwxrwx 1 root root  18 May 29 14:36 K06ifupdown -> ../init.d/ifupdown
lrwxrwxrwx 1 root root  18 May 29 14:36 K07umountfs -> ../init.d/umountfs
lrwxrwxrwx 1 root root  20 May 29 14:36 K08umountroot -> ../init.d/umountroot
lrwxrwxrwx 1 root root  15 May 29 14:36 K09kexec -> ../init.d/kexec
lrwxrwxrwx 1 root root  19 May 29 14:36 K09live-boot -> ../init.d/live-boot
lrwxrwxrwx 1 root root  16 May 29 14:36 K10reboot -> ../init.d/reboot
-rw-r--r-- 1 root root 351 Jan  1 06:34 README
 
Old 06-04-2011, 10:26 AM   #6
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
try

reboot -f

Does that work ?
 
Old 06-04-2011, 11:04 AM   #7
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by almatic View Post
try

reboot -f

Does that work ?
Yes, this works, but howto get shutdown -r now or init6 working?
 
Old 06-04-2011, 12:45 PM   #8
almatic
Member
 
Registered: Mar 2007
Distribution: Debian
Posts: 547

Rep: Reputation: 67
One of the stop scripts probably "hangs" the process for whatever reason.
I'd go to a terminal and execute them manually one by one so you can find out which one hangs. Goto tty2 for example and then do

invoke-rc.d alsa-utils stop
invoke-rc.d anacron stop
...
and so on.
 
Old 06-04-2011, 08:26 PM   #9
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,623

Original Poster
Rep: Reputation: 51
Thx, I couldn't identify this problem so I've restored from the backup.
Now it works again.
 
  


Reply



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] Wake on Lan doesn't work after Linux shutdown allanwiese Linux - General 8 12-30-2010 08:33 AM
'last' command doesn't show last shutdown Lyle Linux - Newbie 1 07-06-2010 11:57 PM
[SOLVED] The shutdown-command doesnt work properly Suppen Linux - General 4 01-14-2010 08:52 AM
why doesn't work this command? baby_ Linux - General 5 12-13-2009 07:16 AM
the ./ command doesn't work Thane Ubuntu 14 09-30-2006 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:27 AM.

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