LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   init script link clashes, debian, update-rc.d, /etc/rc2.d (https://www.linuxquestions.org/questions/linux-general-1/init-script-link-clashes-debian-update-rc-d-etc-rc2-d-604665/)

maxvonseibold 12-05-2007 07:46 AM

init script link clashes, debian, update-rc.d, /etc/rc2.d
 
Hello,

I am running Debian 4 and needed to install NIS and autofs.

Both of these were installed fine through apt-get however they had problems initialising.

an ls of /etc/rc2.d showed

Code:

my_machine_name:/etc/rc2.d# ls
README      S19hplip         
S10sysklogd  S19nis           
S11klogd   
S18portmap 
S19autofs

As you can see, several script links all have the number 19 ...

Is it normal for Debian to give init script links identical numbers or should I try to change this?

If so is this a case of just changing them by hand or should I be using some kind of automated tool like 'update-rc.d'?


Many Thanks,



Max.

ktgajowniczek 12-05-2007 08:36 AM

Quote:

Originally Posted by maxvonseibold (Post 2980918)
Hello,

[...]

As you can see, several script links all have the number 19 ...

Is it normal for Debian to give init script links identical numbers or should I try to change this?

If so is this a case of just changing them by hand or should I be using some kind of automated tool like 'update-rc.d'?

[...]

hi,

This is normal, I have plenty of 20s for example.

Certainly, you can edit those numbers. Moreover you can do it, whichever way you like.

Question is: what for?

I don't think changing order of those scripts will help, unless you proved that already by running them manually. I suspect some configuration or network problems, rather than just wrong order.

What kind of error do you get running them?


--
KTG

maxvonseibold 12-07-2007 03:07 AM

Hello,

I was not getting any actual error messages per se. However, NIS (ypbind) absolutely needs to be started before autofs it seems and in the initial configuration this was not happening. When I manually changed the link making autofs a greater number than (hence starting after) nis it worked fine.

I am not certain this is a Debian problem as I was simultaneously setting this up of Fedora which had a similar problem of the domainname variable not being set properly. It seems that whilst NIS and and autofs and easy to install, they need some tweaking to interact correctly post installation.


Many Thanks.



Max.


All times are GMT -5. The time now is 01:21 PM.