Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Inserting a custom rc-script doesn't work
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ikrabbe
n00b
n00b


Joined: 11 Aug 2002
Posts: 28
Location: Dortmund, Germany

PostPosted: Sun Aug 11, 2002 7:00 pm    Post subject: Inserting a custom rc-script doesn't work Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Aug 11, 2002 7:11 pm    Post subject: Reply with quote

Maybe try using boot runlevel instead of default?
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
ikrabbe
n00b
n00b


Joined: 11 Aug 2002
Posts: 28
Location: Dortmund, Germany

PostPosted: Sun Aug 11, 2002 7:43 pm    Post subject: OK I'll try it Reply with quote

But why should that help ? A short notice about that could be helpful !
Back to top
View user's profile Send private message
ikrabbe
n00b
n00b


Joined: 11 Aug 2002
Posts: 28
Location: Dortmund, Germany

PostPosted: Sun Aug 11, 2002 7:59 pm    Post subject: Still not running Reply with quote

:( 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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Sun Aug 11, 2002 8:28 pm    Post subject: Reply with quote

/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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Aug 11, 2002 9:03 pm    Post subject: Re: OK I'll try it Reply with quote

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
View user's profile Send private message
ikrabbe
n00b
n00b


Joined: 11 Aug 2002
Posts: 28
Location: Dortmund, Germany

PostPosted: Sun Aug 11, 2002 10:22 pm    Post subject: Found the ERROR ! Reply with quote

:oops:

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sun Aug 11, 2002 10:25 pm    Post subject: Re: Found the ERROR ! Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum