First you need to know in wich runlevel you usualy run your system.
if you didn't change this , Redhat 4.2 runs in runlevel 3 (you can check
the default runlevel in /etc/inittab)
then with redhat 4.2 all the init scripts are kept in /etc/rc.d/init.d
So if you add one you should put it in this directory and make a symlink
to it in /etc/rc.d/rc3.d (for runlevel 3)
this symlink should have a name starting with an 'S' followed by a 2
digit number (the files are executed in the ascii order so these digits
give the ability to choose the sequence of execution of the scripts)
followed by a name of you choice.
You should put symlinks to it also in /etc/rc.d/rc0.d and /etc/rc.d/rc1.d
with a name starting with a 'K' (this is to stop the service when you go
to single user mode or when you stop the computer).
IN SHORT THIS IS THE ORIGINAL REDHAT CONFIG:
/etc/rc.d/rc6.d/K10named.init -> ../init.d/named.init
/etc/rc.d/rc5.d/S55named.init -> ../init.d/named.init
/etc/rc.d/rc3.d/S55named.init -> ../init.d/named.init
/etc/rc.d/rc2.d/K10named.init -> ../init.d/named.init
/etc/rc.d/rc1.d/K10named.init -> ../init.d/named.init
/etc/rc.d/rc0.d/K10named.init -> ../init.d/named.init
to understand how your computer starts up, have a look at the
/etc/rc.d/rc script
hope this helps
-----Message d'origine-----
De: Sony Lloyd Ponton [SMTP:[EMAIL PROTECTED]]
Date: mercredi 5 août 1998 05:05
À: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Objet: For god sake..when are my daemons going to start up..
Hi,
I ve configured my named config files (named.boot, named.ca, named.conf
cause I have Bind 8.1..named.rev..named..), and I ve read that I should
find in my rc script files an rc file that looks like : if [ -f
/etc/inet/named.boot -a -x /usr/sbin/in.named] then /usr/sbin/in.named
fi..
Well, I was searching through all my rc scripts files and still cannot
find
the right one, where I should include the precedent scripts. In my rc.d
directory, I just see init.d, rc, rc.local, rc.sysinit, rc0.d,
rc1.d..etc..
In all these directories and files I found scripts that looks like the
following one that I took from /etc/rc.d/init.d/named.init:
#source network configs
./etc/sysconfig/network
#check that networking is up:
[$ {NETWORKING}="no"] && exit 0
[ if /usr/sbin/httpd] :: exit 0
#
[if /etc/named.boot] :: exit 0
# start daemons
echo -n "starting named:"
daemon named
echo
touch /var/lock/subsys/named
;;
#stop daemons
echo -n " shutting down named"
killproc named..
Well, I m on redhat 4.2. Ok, I know some paths should be changed, for
ie..where there s named.boot, I ll replace it by named.conf and it s
right
path cause this is Bind 8.1. But that s not the problem cause whatever I
ve
tried (before installin Bind8.1, or after..the problem still the same),
here s the problem:
First what would be the rc file that I should put in the scripts to start
up my named daemon (rc.0? httpd.init??named.init??).
Second, whenever I go to /usr/sbin and run httpd,I got error: cannot
determine Local host name . Use servername to set it. What is that??what
Should I do??
Third: When I run named from /usr/sbin, I got no error and back to prompt
..but when I execute ps to look at the processes that are active..there s
no entry for named. So I still cannot run named.
Thanks for Help
Arhel Lehenz
Norway