View previous topic :: View next topic |
Author |
Message |
gentooJunkie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/17927157763f1fcb9855e66.jpg)
Joined: 09 Jun 2003 Posts: 59 Location: Kalamazoo, MI, USA :()
|
Posted: Wed Apr 14, 2004 10:16 pm Post subject: Simple NOIP question |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Epyon l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/5582663804051bca54053a.jpg)
Joined: 11 Sep 2003 Posts: 754 Location: NJ, USA
|
Posted: Thu Apr 15, 2004 1:16 am Post subject: |
|
|
it should be here: /etc/init.d/noip
To make it automatically start type: rc-update add noip default |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
philps n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/20844017407c67cd1774d.jpg)
Joined: 13 Apr 2004 Posts: 5 Location: Brasília, DF, Brazil
|
Posted: Thu Apr 15, 2004 2:59 am Post subject: |
|
|
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.
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 |
|
![](templates/gentoo/images/spacer.gif) |
gentooJunkie n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/17927157763f1fcb9855e66.jpg)
Joined: 09 Jun 2003 Posts: 59 Location: Kalamazoo, MI, USA :()
|
Posted: Sat Apr 17, 2004 2:21 pm Post subject: |
|
|
Thank you both. I used your script and all is good.
Xiexie
GTJ ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ GO ASASHORYU!
Gen-toooooooooooooooooooooo!!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|