Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-24-2003, 12:02 PM
|
#1
|
Member
Registered: Jul 2003
Posts: 140
Rep:
|
halt, shutdown, and reboot
Not exactly sure this goes here but its a pretty simple question. When I first installed Redhat 8 I could edit the reboot halt and shutdown commands. But as soon as I reformatted my hard drive I forgot the directory they were stored in. I searched for the files and they came up in /usr/bin but when I tried to edit them they were in binary! Is there anyway to fix this or am I at the right directory?
|
|
|
07-24-2003, 12:30 PM
|
#2
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
I'm not sure what you mean about "editing the commands" unless you mean the scripts controlling runlevels. Red Hat's System V so I'm not sure - they're still somewhere under /etc/rc.d though, I think. Is that what you were talking about?
|
|
|
07-24-2003, 12:37 PM
|
#3
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213
Rep:
|
shutdown is in /sbin
|
|
|
07-24-2003, 12:41 PM
|
#4
|
Member
Registered: Jul 2003
Posts: 140
Original Poster
Rep:
|
Well what i did before was I changed what it printed so like instead of it saying "Sending all processes the TERM signal" it would say "Sending all processes the TERMITE signal" (its lame) but now I'm hoping to give it a script to run when it shuts down, reboots, and well halt doesnt matter... So the problem is what I think I probably edited before is now in what I think is binary. Which I cant read.
Last edited by HappyDude; 07-24-2003 at 12:44 PM.
|
|
|
07-24-2003, 12:44 PM
|
#5
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
Yeah - that's /etc/rc.d/rc.0 on my system and doesn't contain that exact line, but that's where it would be. Just changing an 'echo' value, right?
-- Well, actually rc.6 - 0's just a symlink to 6.
Last edited by slakmagik; 07-24-2003 at 12:45 PM.
|
|
|
07-24-2003, 12:44 PM
|
#6
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213
Rep:
|
You could try /etc/rc.d/rc.0...
|
|
|
07-24-2003, 12:45 PM
|
#7
|
Member
Registered: Jul 2003
Posts: 140
Original Poster
Rep:
|
EDIT: Well I dont have rc.0 so I'll try the sbin suggustion...
Lemme check...
Last edited by HappyDude; 07-24-2003 at 12:47 PM.
|
|
|
07-24-2003, 12:45 PM
|
#8
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213
Rep:
|
lol we're replying at the same moment...
|
|
|
07-24-2003, 12:45 PM
|
#9
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213
Rep:
|
theres no echo afaik
|
|
|
07-24-2003, 12:47 PM
|
#10
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep:
|
5 posts and 2 edits in 2 minutes. *That'll* get confusing.
|
|
|
07-24-2003, 12:48 PM
|
#11
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213
Rep:
|
yes esp those edits
|
|
|
07-24-2003, 12:48 PM
|
#12
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213
Rep:
|
There seems to have been a slight problem with the LinuxQuestions.org Forums - where Linux newbies come for help database.
Please try again by pressing the refresh button in your browser.
An E-Mail has been dispatched to our Technical Staff, who you can also contact if the problem persists.
We apologise for any inconvenience.
|
|
|
07-24-2003, 12:49 PM
|
#13
|
Member
Registered: Jul 2003
Posts: 140
Original Poster
Rep:
|
/sbin is in binary or whatever the heck that is...
|
|
|
07-24-2003, 12:51 PM
|
#14
|
Member
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213
Rep:
|
I'm going to search my harddisk...for Sending all processes the TERM signal...
|
|
|
07-24-2003, 12:57 PM
|
#15
|
Member
Registered: Jul 2003
Posts: 140
Original Poster
Rep:
|
Well part of the problem might be that when I could edit it I was using the official redhat package and now I'm using the Dummies package...
|
|
|
All times are GMT -5. The time now is 06:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|