Linux forum

General discussion

change the shutdown sequence in red hat linux

Hi,
I use red hat linux kernel 2.6
I want to add the application shutdown in shutdown sequence .
I add the K script in /etc/rc.d/ all sub directory for all
running level .
But the auto shutdown application is not appear when
I type "shutdown -r now" ..
There is no indication the application shutdown in the
display ...
The shutdown seq is hang/stop and I need to shutdown the application
by command manually .Then the shutdown process can be continue ....

Why ??/
how can I change the shutdown seq ???
Any advice ...

Discussion is locked
You are posting a reply to: change the shutdown sequence in red hat linux
The posting of advertisements, profanity, or personal attacks is prohibited. Please refer to our CNET Forums policies for details. All submitted content is subject to our Terms of Use.
Track this discussion and email me when there are updates

If you're asking for technical help, please be sure to include all your system info, including operating system, model number, and any other specifics related to the problem. Also please exercise your best judgment when posting in the forums--revealing personal information such as your e-mail address, telephone number, and address is not recommended.

You are reporting the following post: change the shutdown sequence in red hat linux
This post has been flagged and will be reviewed by our staff. Thank you for helping us maintain CNET's great community.
Sorry, there was a problem flagging this post. Please try again now or at a later time.
If you believe this post is offensive or violates the CNET Forums' Usage policies, you can report it below (this will not automatically remove the post). Once reported, our moderators will be notified and the post will be reviewed.
Collapse -
some help

In reply to: change the shutdown sequence in red hat linux

Collapse -
change shutdown seq in red hat linux kernel 2.6

In reply to: some help

Why the init level 3 ,4 ,5 not present a S script for gcota and

a K script for gcota ???
Only init level 0 ,1,2,6 present K script
init level 3 ,4, 5 present S script ??

Why do it not present both script in the same level ????
It is red hat linux kernel 2.6

[code]
# find /etc/rc.d -name "*gcota*" -print
/etc/rc.d/rc2.d/K04gcota
/etc/rc.d/rc3.d/S96gcota
/etc/rc.d/init.d/gcota
/etc/rc.d/rc1.d/K04gcota
/etc/rc.d/rc5.d/S96gcota
/etc/rc.d/rc6.d/K04gcota
/etc/rc.d/rc0.d/K04gcota
/etc/rc.d/rc4.d/S96gcota
# head -20 /etc/initd./gcota
head: cannot open `/etc/initd./gcota' for reading: No such file or directory
# head -20 /etc/init.d/gcota
#! /bin/bash
# chkconfig: 345 96 4
[/code]

Collapse -
eh

In reply to: change shutdown seq in red hat linux kernel 2.6

You can edit those all things to your need (hit new boot record of 2 seconds etc.), but be careful you can end up with no boot at all. All that layout may look difficult and hard to understand, but it is most simple when you need to make big changes to it. Also it allows more security and faster boot times.

Back to topic so you just find correct script and add sth. like this to it:
/etc/rc.d/yourscript
That simple.

Collapse -
change the shutdown seq in red hat linux kernel 2.6

In reply to: eh

Hi,
I just want to know why the K script and S script are both present in the user level ....if either one is missing , that make
the shutdwon or startup application missing ...
that is what I meet , without k script , the application cannot shutdown auto, I need to shutdown it manually by command before the machine reboot successfuly ....
Why both k script and s script not present in the same user level if I create the auto startup by chkconfig ..
Any thing wrong ?? Any advice ???

Collapse -
meanings

In reply to: change the shutdown seq in red hat linux kernel 2.6

K - means shut-down script
S - means start-up script
shutdown from user runlvl to lower in other words is run K userlvl script. And etc.

eh... p.s. This is basics of Unix type OS. You can find this in any general book about Unix.

Popular Forums

icon
Computer Newbies 10,686 discussions
icon
Computer Help 54,365 discussions
icon
Laptops 21,181 discussions
icon
Networking & Wireless 16,313 discussions
icon
Phones 17,137 discussions
icon
Security 31,287 discussions
icon
TVs & Home Theaters 22,101 discussions
icon
Windows 7 8,164 discussions
icon
Windows 10 2,657 discussions

SMART HOME

This one tip will help you sleep better tonight

A few seconds are all you need to get a better night's rest.