LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-06-2004, 04:44 PM   #1
kdepa
Member
 
Registered: Feb 2004
Posts: 73

Rep: Reputation: 15
Missing rc.0, rc.1, rc.2, and rc.3 files


After an fsck, the files rc.0, rc.1, rc.2, rc.3 are missing. The system automatically ran the filesystem check during startup because it hadn't been checked in a while. It's running on slackware 9.1 Has this happened before? or is it just coincidence?
 
Old 04-06-2004, 05:04 PM   #2
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
Sorry, Slack has no rc.0 or ec.1, etc files. You must have just awakened with a RedHat hangover and are still looking for those damned confusing sysvinit scripts! Slackware uses BSD-style init scripts. All the scripts are in rc.d.
 
Old 04-06-2004, 05:06 PM   #3
kdepa
Member
 
Registered: Feb 2004
Posts: 73

Original Poster
Rep: Reputation: 15
I have an rc.4 and an rc.6 file, and the computer is complaining that it doesnt have the rc.0 file. I do remember seeing it there before in /etc/rc.d/
all the other "rc" files are there.
 
Old 04-06-2004, 05:13 PM   #4
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
The rc.0 file in Slackware is a symbolic link to the rc.6 file.

Typing:

ln -s rc.6 rc.0

(while in the /etc/rc.d directory) will create it for you.
 
Old 04-06-2004, 06:48 PM   #5
kdepa
Member
 
Registered: Feb 2004
Posts: 73

Original Poster
Rep: Reputation: 15
Thanks for the info! Any thoughts on the other rc.d files? This cannot happen again, because the computer is being used as a file server for a bunch of windoze machines, and it holds many student assignments...
 
Old 04-06-2004, 07:26 PM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Well, as far as I know, Slackware doesn't usually have rc.1-3.

What it does have in their place however is:

Instead of "rc.1", Slackware has "rc.K".

Instead of "rc.2" and "rc.3", Slackware has "rc.M".

Creating symbolic links for these files like you did for rc.0 should make everything work, but I don't understand why your system thinks these files (rc.1-3) exist in the first place.
 
Old 04-06-2004, 07:35 PM   #7
LinFreak!
Member
 
Registered: Jul 2003
Location: England
Distribution: slack9.1
Posts: 209

Rep: Reputation: 30
It goes like this:

edit: rc.S is system startup
# init 1 = rc.K = single user mode (like rc.1)
# init 3 = rc.M = multi user mode, this runs all the other /etc/rc.d/rc.* files as subroutines, but only if they are executable.
# init 4 = rc.4 starts the X environment
# init 0 or 6 = as described above by MS3GFX, rc.0 or rc.6 (halt or reboot)

mmm nice! you now have full control of your system and services.

Last edited by LinFreak!; 04-06-2004 at 07:38 PM.
 
Old 04-06-2004, 07:43 PM   #8
kdepa
Member
 
Registered: Feb 2004
Posts: 73

Original Poster
Rep: Reputation: 15
AH!! That explains it! Thanks very much for all the help! (I should have realized the replacements...) *feels dumb* oh well. Thanks for all your help!
 
Old 04-06-2004, 07:59 PM   #9
kdepa
Member
 
Registered: Feb 2004
Posts: 73

Original Poster
Rep: Reputation: 15
Also, the system only was asking for rc.0 The person who I'm doing this for thought (but wasn't entirely sure) that it was missing the others. I guess I should have put that in my first post. Oh well.
 
Old 04-07-2004, 02:41 AM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578Reputation: 578
Oh, I'm sorry. In my haste to be sarcastic I didn't think about rc.0 and rc.6. Anyway, adding to the post above, near the end of rc.S rc.modules is called and then at the end of rc.M, rc.local is called
 
Old 04-07-2004, 10:27 AM   #11
kdepa
Member
 
Registered: Feb 2004
Posts: 73

Original Poster
Rep: Reputation: 15
Thats okay! No harm done
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
missing files waqer Mandriva 5 12-25-2004 05:33 AM
Missing files HeXetic Linux - Newbie 2 03-29-2004 05:00 PM
Missing files??? AMMullan Linux - Software 1 11-07-2003 09:05 AM
Missing files Thinkgeekness Linux - General 3 01-09-2003 08:49 PM
Files missing!!! kurgan70 Linux - General 0 06-29-2001 11:59 AM

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

All times are GMT -5. The time now is 08:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration