LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 07-24-2003, 12:02 PM   #1
HappyDude
Member
 
Registered: Jul 2003
Posts: 140

Rep: Reputation: 15
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?
 
Old 07-24-2003, 12:30 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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?
 
Old 07-24-2003, 12:37 PM   #3
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
shutdown is in /sbin
 
Old 07-24-2003, 12:41 PM   #4
HappyDude
Member
 
Registered: Jul 2003
Posts: 140

Original Poster
Rep: Reputation: 15
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.
 
Old 07-24-2003, 12:44 PM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
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.
 
Old 07-24-2003, 12:44 PM   #6
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
You could try /etc/rc.d/rc.0...
 
Old 07-24-2003, 12:45 PM   #7
HappyDude
Member
 
Registered: Jul 2003
Posts: 140

Original Poster
Rep: Reputation: 15
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.
 
Old 07-24-2003, 12:45 PM   #8
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
lol we're replying at the same moment...
 
Old 07-24-2003, 12:45 PM   #9
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
theres no echo afaik
 
Old 07-24-2003, 12:47 PM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
5 posts and 2 edits in 2 minutes. *That'll* get confusing.
 
Old 07-24-2003, 12:48 PM   #11
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
yes esp those edits
 
Old 07-24-2003, 12:48 PM   #12
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
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.
 
Old 07-24-2003, 12:49 PM   #13
HappyDude
Member
 
Registered: Jul 2003
Posts: 140

Original Poster
Rep: Reputation: 15
/sbin is in binary or whatever the heck that is...
 
Old 07-24-2003, 12:51 PM   #14
dARkHunTEr
Member
 
Registered: Jul 2003
Location: The Netherlands
Distribution: Gentoo Linux
Posts: 213

Rep: Reputation: 30
I'm going to search my harddisk...for Sending all processes the TERM signal...
 
Old 07-24-2003, 12:57 PM   #15
HappyDude
Member
 
Registered: Jul 2003
Posts: 140

Original Poster
Rep: Reputation: 15
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...
 
  


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
"shutdown" and "halt" symlinks: poweroff, reboot. sud_crow Linux From Scratch 11 10-17-2006 11:03 PM
unable to 'shutdown' from x... need to shutdown using 'halt' guitarnix Linux - Newbie 5 11-24-2003 01:00 AM
SuSE 8.2 Will Not Poweroff, Shutdown, Reboot, Halt... whiskeypriest Linux - Newbie 4 09-18-2003 09:29 AM
Disable reboot/halt/shutdown as normal user carstenbjensen Mandriva 4 09-09-2003 11:42 AM
halt and reboot in gnome tuggy Debian 1 08-28-2003 10:25 PM

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

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