From: Roland P. <pa...@ta...> - 2004-03-07 19:27:17
|
On Sunday 07 March 2004 19:23, ]Aphex[ wrote: > I changed the file, this is what it looks like now: > [...] > > Is this file ok now? The file works when being started directly so > '/etc/init.d/adsl start' works. After running 'insserv /etc/init.d/adsl' it > makes a symlink called /etc/init.d/rc3.d/S10adsl. Btw the man page of > insserv isn't included in DL. > I tried removing and re-adding it but it didn't help. I did 'insserv -r > /etc/init.d/adsl' and then 'insserv /etc/init.d/adsl', next ran > 'save-config' and rebooted, adsl still didn't start. > I found some weird things though: > 1. when I run /etc/init.d/adsl start|stop it works, but when I run > '/etc/init.d/rc3.d/S10adsl start' it does nothing. Your skript still checks if /etc/sysconfig/config contains $START_ADSL, which it probably doesn't. Append START_ADSL="yes" to that file or comment out these lines: test $link = $base && START=yes test "$START" = "yes" || exit 0 That should make it work... I think we could need some boot logging (/var/log/boot.msg) to make solving these problems easier (esp for people w/o attached monitors) > 2. In /etc/init.d/rc3.d there is a symlink called K11adsl and it points to > ../adsl. Could this cause it to stop immediately after starting? I don't > know how init handles those scripts, is it first the lowest number and then > getting higher, or is it first all kill scripts from low to high numbers, > and then the start scripts? Anyway I never added that symlink. So insserv > must have put it there for some reason which I really wouldn't know. This is fine: When going from runlevel R1 into runlevel R2, first all Kill-scripts K* in runlevel rcR1.d/ are executed, then all Start-Skripts S* in runlevel rcR2.d/ (both in ascending order) - except for those services which should be running in both runlevels (those skripts are skipped, not stopped and started). By doing it this way, going from runlevel 3 to 5 only starts the XServer (in distros that have XFree)... Roland -- ICQ UIN 49339118 Linux Counter #88774 GPG-Key 1024D/59C6AFA6 2003-02-07 Roland Pabel <ro...@pa...> |