View previous topic :: View next topic |
Author |
Message |
ikrabbe n00b
Joined: 11 Aug 2002 Posts: 28 Location: Dortmund, Germany
|
Posted: Sun Aug 11, 2002 7:00 pm Post subject: Inserting a custom rc-script doesn't work |
|
|
Hi,
I connect to the internet via dsl through the kernel pppoe module.
For this purpose I checked out a pppd from cvs and installed it by hand --- WORKS FINE.
Now I want to start this ppp deamon on each bootup of course, writing a "dsl" script in /etc/init.d, since the net.ppp0 script is complete
overload when you configure pppd via /etc/ppp/options.
All I really need is call pppd eth0, but thats not the matter.
Also I took the net.ppp0 script and changed it for my purposes, keeping the essential functions: start, stop and checkconfig.
I tested the script with "runscript /etc/init.d/dsl start/stop", which works fine. After inserting the script by "rc-update add dsl default"
I'm rebooting to see if anything is in place BUT IT ISN'T ???
What happened to me, where can I look. Anything seems fine but it simply isn't executed. Does anybody know a bit further ?
BYE INGO |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Aug 11, 2002 7:11 pm Post subject: |
|
|
Maybe try using boot runlevel instead of default? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
ikrabbe n00b
Joined: 11 Aug 2002 Posts: 28 Location: Dortmund, Germany
|
Posted: Sun Aug 11, 2002 7:43 pm Post subject: OK I'll try it |
|
|
But why should that help ? A short notice about that could be helpful ! |
|
Back to top |
|
|
ikrabbe n00b
Joined: 11 Aug 2002 Posts: 28 Location: Dortmund, Germany
|
Posted: Sun Aug 11, 2002 7:59 pm Post subject: Still not running |
|
|
Thats frustrating isn't it. What's going wrong here ? I would like to insert custom startup scripts, but they aren't executed.
rc-update add dsl boot
rc-update add dsl default
These commands add the link to /etc/init.d/dsl, which is an executable script. Which boot script does execute all these subscripts ?
BYE INGO |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Sun Aug 11, 2002 8:28 pm Post subject: |
|
|
/sbin/rc runs it. If you look at /etc/inittab, you will see lines like:
Code: |
l3:3:wait:/sbin/rc default
|
which tells the rc script what soft runlevel to invoke. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Sun Aug 11, 2002 9:03 pm Post subject: Re: OK I'll try it |
|
|
ikrabbe wrote: | But why should that help ? A short notice about that could be helpful ! | I don't know that it would, was just an idea. I take it the script doesn't run in either runlevel? _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
ikrabbe n00b
Joined: 11 Aug 2002 Posts: 28 Location: Dortmund, Germany
|
Posted: Sun Aug 11, 2002 10:22 pm Post subject: Found the ERROR ! |
|
|
Uhhh, oooh, I think that was my fault.
I simply had an extra blank line on top of the dsl script, that caused the #!/sbin/runscript interpreter pipe wasn't started, when calling directly "/etc/init.d/dsl start".
Now it works, but I strongly recommend to overthink the net.ppp0 script, since it overwrites pap and chap secrets. Thats completly unwanted !!! I have an ISDN and a DSL route over ppp so I cannot work with a service the overwrites common used password files. This isn't nice at all.
Thanks for audience,
BYE INGO |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Sun Aug 11, 2002 10:25 pm Post subject: Re: Found the ERROR ! |
|
|
Glad it's working for you now.
ikrabbe wrote: | I strongly recommend to overthink the net.ppp0 script, since it overwrites pap and chap secrets. Thats completly unwanted !!! I have an ISDN and a DSL route over ppp so I cannot work with a service the overwrites common used password files. This isn't nice at all. |
The best chance you have of getting this changed is to file a bug report about it at https://bugs.gentoo.org. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|