LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Sys Init Scripts for redhat 9 (https://www.linuxquestions.org/questions/linux-newbie-8/sys-init-scripts-for-redhat-9-a-96749/)

BwiNfon 09-25-2003 10:56 AM

Sys Init Scripts for redhat 9
 
Where are they? thanks

unSpawn 09-25-2003 12:27 PM

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.

BwiNfon 09-25-2003 12:45 PM

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

Skyline 09-25-2003 12:52 PM

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.

BwiNfon 09-25-2003 01:19 PM

ok, i feel somewhat dumb asking, but what is a symlink?

Skyline 09-25-2003 01:24 PM

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"

kabalah 09-25-2003 01:42 PM

i think you can do the following as root:

chkconfig named on

then:

chkconfig --list|grep named


you should see something like:

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


kabalah

BwiNfon 09-25-2003 01:42 PM

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

BwiNfon 09-25-2003 01:45 PM

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?

kabalah 09-25-2003 02:06 PM

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

BwiNfon 09-25-2003 02:08 PM

ok, thanks for your help. Now i go onward to learn about chkconfig and runlevels.


All times are GMT -5. The time now is 05:43 AM.