Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple NOIP question
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gentooJunkie
n00b
n00b


Joined: 09 Jun 2003
Posts: 59
Location: Kalamazoo, MI, USA :()

PostPosted: Wed Apr 14, 2004 10:16 pm    Post subject: Simple NOIP question Reply with quote

I dled the noip updater and installed it. The README claims that
Quote:
If you want it to run automatically when the machine is booted, then
place the following script in your startup directory. (/etc/init.d/rcX.d
or /sbin/init.d/rcX.d or ???)

My simple question is: what is the '???' for Gentoo? I noticed rcX.d(=rc3.d) didn't exist.

Thanks

GTJ
_________________
GO ASASHORYU!

Gen-toooooooooooooooooooooo!!!
Back to top
View user's profile Send private message
Epyon
l33t
l33t


Joined: 11 Sep 2003
Posts: 754
Location: NJ, USA

PostPosted: Thu Apr 15, 2004 1:16 am    Post subject: Reply with quote

it should be here: /etc/init.d/noip

To make it automatically start type: rc-update add noip default
Back to top
View user's profile Send private message
philps
n00b
n00b


Joined: 13 Apr 2004
Posts: 5
Location: Brasília, DF, Brazil

PostPosted: Thu Apr 15, 2004 2:59 am    Post subject: Reply with quote

Hope this helps...
I've installed the NoIP2 client, and created the initscript as /etc/init.d/noip2. So, the right path for it is really /etc/init.d.
Anyway, I didn't really like that example script and wrote a Gentoo-style initscript (so I could use the start, stop and restart parameters). After that, I added it to rc-update and now it happily updates my address every time I boot. :mrgreen:
There it goes. Just create it at /etc/init.d.
Code:

#!/sbin/runscript
#. /etc/init.d/functions.sh     # uncomment/modify for your killproc

depends() {
        need net
        use logger
}

start() {
        ebegin "Starting noip2"
        start-stop-daemon --start --quiet --exec /usr/local/bin/noip2
        eend $?
}

_________________
Life's a cabaret.
Back to top
View user's profile Send private message
gentooJunkie
n00b
n00b


Joined: 09 Jun 2003
Posts: 59
Location: Kalamazoo, MI, USA :()

PostPosted: Sat Apr 17, 2004 2:21 pm    Post subject: Reply with quote

Thank you both. I used your script and all is good.

Xiexie

GTJ :D
_________________
GO ASASHORYU!

Gen-toooooooooooooooooooooo!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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