Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Adding dynip.sh to local.start.
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
MasonS
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2003
Posts: 90

PostPosted: Thu Nov 13, 2003 8:50 am    Post subject: Adding dynip.sh to local.start. Reply with quote

I tried adding this line to local.start:
/usr/local/bin/dynip.sh

but when I restart local it says it fails. So, I tried:
sh /usr/local/bin/dynip.sh

That doesn't work either. I obviously don't understand something very basic about local.start and would appreciate some help. Incidentally, it's a script to update my IP address with dyndns.org.
Back to top
View user's profile Send private message
magnet
Guru
Guru


Joined: 16 Mar 2003
Posts: 582
Location: france

PostPosted: Thu Nov 13, 2003 10:56 am    Post subject: Reply with quote

this sounds like good to me...
what error messages do you get ?
_________________
every step aim at glory.
Back to top
View user's profile Send private message
MasonS
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2003
Posts: 90

PostPosted: Thu Nov 13, 2003 3:22 pm    Post subject: Reply with quote

* Failed to start local. [!!]

Do we call that a Gentoo system message? Anyway, it's not a syntax error or anything. When I remove the line it works fine.
Back to top
View user's profile Send private message
magnet
Guru
Guru


Joined: 16 Mar 2003
Posts: 582
Location: france

PostPosted: Thu Nov 13, 2003 3:38 pm    Post subject: Reply with quote

umm , so can you launch the script yourself ? does it works in that way ?
_________________
every step aim at glory.
Back to top
View user's profile Send private message
MasonS
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2003
Posts: 90

PostPosted: Thu Nov 13, 2003 3:55 pm    Post subject: Reply with quote

Yes. That's what I've been doing, but sometimes I forget to run it before I go to school and then I can just forget about sending my files home. Well...I guess I don't need to explain why, but just that I do..:)
Back to top
View user's profile Send private message
magnet
Guru
Guru


Joined: 16 Mar 2003
Posts: 582
Location: france

PostPosted: Thu Nov 13, 2003 4:06 pm    Post subject: Reply with quote

so it works ? umm that really odd. where did you get that script, I'm gonna try it.
_________________
every step aim at glory.
Back to top
View user's profile Send private message
MasonS
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2003
Posts: 90

PostPosted: Thu Nov 13, 2003 4:46 pm    Post subject: Reply with quote

I got this link from dyndns.org: http://www.zikurrat.net/DynIP/
Back to top
View user's profile Send private message
Dinini
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 236

PostPosted: Thu Nov 13, 2003 8:18 pm    Post subject: Reply with quote

Are you not using PPP to connect?

If so it's much more reliable to trigger the script from /etc/ppp/ip-up.local than from /etc/init.d/local.start.

Just to double check, you did chmod both /etc/init.d/local.start and your script to 755, right?

on further thought :) by any chance would the script attempt to send back a status code? I'm wondering if it sends back a return code so that the init script thinks it failed to run properly.
Back to top
View user's profile Send private message
MasonS
Tux's lil' helper
Tux's lil' helper


Joined: 30 May 2003
Posts: 90

PostPosted: Fri Nov 14, 2003 8:41 pm    Post subject: Reply with quote

The script sends back a few line breaks. I think you were right. It does appear to be working anyway.
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