LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2003, 11:56 AM   #1
BwiNfon
LQ Newbie
 
Registered: Sep 2003
Location: Buffalo
Distribution: RH 9.0
Posts: 9

Rep: Reputation: 0
Sys Init Scripts for redhat 9


Where are they? thanks
 
Old 09-25-2003, 01:27 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
You mean in the directory structure? then see /etc/rc.d/init.d, else if you mean the package it's initscripts-something.rpm, or "rpm -qa|grep initscript" to get the current package name.
 
Old 09-25-2003, 01:45 PM   #3
BwiNfon
LQ Newbie
 
Registered: Sep 2003
Location: Buffalo
Distribution: RH 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
well, i'll tell you what i'm trying to do. I want to start named every time my machine boots up. I guess I am assuming that there is a ... well.... let's call it a shell script that starts up specified daemons when the computer boots. I am assuming that what I need to do is add named to that list of daemons. how would i do that?

thanks again
 
Old 09-25-2003, 01:52 PM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
The typical way of starting a service on boot up is to put a symlink from an actuall service in /etc/rc.d/init.d and put the symlink in /etc/rc.d/rcX.d were X is the run level you want the service to start at.
 
Old 09-25-2003, 02:19 PM   #5
BwiNfon
LQ Newbie
 
Registered: Sep 2003
Location: Buffalo
Distribution: RH 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
ok, i feel somewhat dumb asking, but what is a symlink?
 
Old 09-25-2003, 02:24 PM   #6
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Just think of it as a "short-cut" or link to an actual thing - Have you checked Google for something like "Linux start named daemon"
 
Old 09-25-2003, 02:42 PM   #7
kabalah
LQ Newbie
 
Registered: Sep 2003
Location: Los Gatos, Ca
Distribution: Mandrake
Posts: 4

Rep: Reputation: 0
i think you can do the following as root:

chkconfig named on

then:

chkconfig --list|grep named


you should see something like:

named 0ff 1ff 2n 3n 4n 5n 6ff


kabalah
 
Old 09-25-2003, 02:42 PM   #8
BwiNfon
LQ Newbie
 
Registered: Sep 2003
Location: Buffalo
Distribution: RH 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
no, i have been spending most of my time today figuring out how to safely remotely create my firewalls. Which means i've had to figure out what shell scripts were and how to use them, how cron works, how iptables works and all that type of a thing. But I will probably spend more time tommorow on this. Thanks for your help and suggestions
 
Old 09-25-2003, 02:45 PM   #9
BwiNfon
LQ Newbie
 
Registered: Sep 2003
Location: Buffalo
Distribution: RH 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
thanks Kabalah, what does the chkconfig --list actually mean? the :
named 0: off 1: off 2: on 3: on 4: on 5: on 6: off


what does that information tell me?
 
Old 09-25-2003, 03:06 PM   #10
kabalah
LQ Newbie
 
Registered: Sep 2003
Location: Los Gatos, Ca
Distribution: Mandrake
Posts: 4

Rep: Reputation: 0
i think you can do a

man chkconfig

and that will explain chkconfig better than i can, the

named 0: off 1: off 2: on 3: 0n 4: on 5: on 6: off

means the named daemon should start up in runlevels 2,3,4,5 and be off in runlevels 0 and 6.

kabalah
 
Old 09-25-2003, 03:08 PM   #11
BwiNfon
LQ Newbie
 
Registered: Sep 2003
Location: Buffalo
Distribution: RH 9.0
Posts: 9

Original Poster
Rep: Reputation: 0
ok, thanks for your help. Now i go onward to learn about chkconfig and runlevels.
 
  


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
init scripts lvgandhi Debian 2 10-11-2005 03:44 AM
New init scripts? xconspirisist Fedora 9 12-09-2004 12:41 PM
Mandrake 9.1 Sys V-Init Editor Guiltyspark Linux - Software 0 02-10-2004 08:14 PM
Scripts in /etc/rc.d/init.d correro Linux - General 1 03-13-2003 10:47 PM
66.128.135.64 - - [19/Sep/2001:12:19:03 -0400] "GET /scripts/..%252f../winnt/sys adamrau Linux - Security 5 09-23-2001 12:07 PM


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