LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-04-2006, 01:16 PM   #1
vivekt
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Rep: Reputation: 0
Where do I find the shutdown tasks?


I basically need to tell my kernel not to attempt to clear the local apic, which it does, and hence everytime i shutdown im left with an unclean shutdown. The step is carried out after unmounting the filesystems and (probably) during halting the system.

The reason why i need to disable this step is coz I have disabled the APIC as well as the local APIC.

Thanx
 
Old 11-05-2006, 09:15 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
you have not mentioned what distro you are using but the script can be read with a text editor and is likely to be system V script located here

/etc/rc.d/rc6.d
 
Old 11-06-2006, 12:07 PM   #3
vivekt
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for the reply. Im currently using FC6. Can you tell me which script in /etc/rc.d/rc6.d/ to play around with?
 
Old 11-07-2006, 07:27 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
no sorry.

however, you can run a kernel parameter at bootup to stop apic starting in the first place.

noapic added to the grub kernel line should work?

eg kernel /boot/grub/vmlinuz root=/dev/hda noapic
 
Old 11-07-2006, 11:22 AM   #5
vivekt
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
I've already added the noapic and nolapic kernel parameters : without these linux wouldn't boot. THis is where im left clueless, since the apic is disabled, why is the kernel trying to clear the local apic on shutdown? Thanx
 
Old 11-07-2006, 11:29 AM   #6
vivekt
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
more specifically, how do i alter the tasks that are carried out in the halt(/sbin/halt) command?
 
Old 11-08-2006, 07:57 AM   #7
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
I understand your question but lets do it differently.

you have a kernel parameter (or cheatcode) that works because it it built into the kernel or built as a module.

I found mine here (lots of them as well)

/boot/config.....open with a text editor as a normal user NOT root.

use find to search for apic and its under Processor type and features....fair enough....mine is compiled in rather than module.

You could consider reading your distos dox and compiling a kernel with that switch off that is the config file with root mode in /usr/src/whereis your kernel version/ change config for each to
is not set (in lieu of =y OR =m)

keep a backup of your old kernel and modify your grub or lilo so that it does not default (initially) to your new kernel until you have debugged it
 
Old 11-08-2006, 11:15 AM   #8
vivekt
LQ Newbie
 
Registered: Nov 2006
Posts: 6

Original Poster
Rep: Reputation: 0
hey thanx for the soln. I checked my /boot/config file and found three apic option all set to y. Im gonna work on recompiling my kernel. thanx again mate
 
  


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
unclean shutdown causes "Couldn't find matching filesystem: label=" error irnerdette Red Hat 3 06-02-2006 01:44 PM
Automated Tasks Texas_student Linux - Software 4 04-24-2006 09:24 AM
where to find improper shutdown logs linylion Linux - General 4 09-07-2004 11:59 PM
cant find command shutdown ??? qwijibow Linux - Newbie 5 06-14-2003 02:16 PM
Need some tasks AMDPwred Linux - General 5 02-28-2003 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:04 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