Sys Init Scripts for redhat 9
Where are they? thanks
|
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.
|
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 |
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.
|
ok, i feel somewhat dumb asking, but what is a symlink?
|
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"
|
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 |
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
|
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? |
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 |
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. |