LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   starting a service for dyndns update client (https://www.linuxquestions.org/questions/linux-networking-3/starting-a-service-for-dyndns-update-client-640240/)

momotaro 05-06-2008 05:25 AM

starting a service for dyndns update client
 
I want to use the dynamic IP updater Inadyn. I know to create the .conf file and put it in /etc/inadyn.conf, I have done this.
This updater has an executable file but I don't know what to do with it.
I guess I should make it start as a service (daemon) but I don't know how.
I got this from htttp://www.dyndns.com/support/kb/using_inadyn_with_dyndns_services.html

Tips on what to do to get this up and running appreciated.
Thanks

bsdunix 05-06-2008 07:42 AM

See if this thread helps you:

http://www.linuxquestions.org/questi...g-boot-541367/

momotaro 05-07-2008 12:57 AM

Quote:

Originally Posted by bsdunix (Post 3144461)

Thanks for the link. On my PCLOS distro I get an error that service inadyn can't support chkconfig. Unfortunately, it didn't work out. Googling for a solution still. I tried a couple of inadyn.rpm files without luck yet too!

bsdunix 05-07-2008 07:40 AM

Exploring PCLinuxOS - Part 1
http://www.terryscomputertips.com/co...xos-part-1.php

According to the above article, there should be a /etc/rc.d/rc.local file. The rc.local file can been used to start daemons/run scripts at boot time which are added by the local SysAdmin and customized per site requirements. If you have this file, then you could probably use it. It's contents could be something simple like:
Code:

#!/bin/sh

# Start inadyn.
# Example taken from the http://www.dyndns.com website.

inadyn --username test --password test --update_period_sec 600 --alias test.homeip.net

The current PCLinuxOS Wiki page is not very informative about adding services or start up programs.

http://docs.pclinuxos.com/HomePage

The old Wiki is a little better, but still didn't mention the rc.local file.

http://oldwiki.mypclinuxos.com/Confi...ystem_services

I hope this helps.

Edit:

If using the /etc/rc.d/rc.local works for you, you might consider securing the file so only root can read/execute it considering there would be a password in it.
Code:

# chmod 700 /etc/rc.d/rc.local
3.4. File security
http://www.faqs.org/docs/linux_intro/sect_03_04.html

momotaro 05-07-2008 07:37 PM

Quote:

Originally Posted by bsdunix (Post 3145604)
Exploring PCLinuxOS - Part 1
http://www.terryscomputertips.com/co...xos-part-1.php

According to the above article, there should be a /etc/rc.d/rc.local file. The rc.local file can been used to start daemons/run scripts at boot time which are added by the local SysAdmin and customized per site requirements. If you have this file, then you could probably use it. It's contents could be something simple like:
Code:

#!/bin/sh

# Start inadyn.
# Example taken from the http://www.dyndns.com website.

inadyn --username test --password test --update_period_sec 600 --alias test.homeip.net

The current PCLinuxOS Wiki page is not very informative about adding services or start up programs.

http://docs.pclinuxos.com/HomePage

The old Wiki is a little better, but still didn't mention the rc.local file.

http://oldwiki.mypclinuxos.com/Confi...ystem_services

I hope this helps.

Edit:

If using the /etc/rc.d/rc.local works for you, you might consider securing the file so only root can read/execute it considering there would be a password in it.
Code:

# chmod 700 /etc/rc.d/rc.local
3.4. File security
http://www.faqs.org/docs/linux_intro/sect_03_04.html

Thank you, these are useful tips. I am sure I'll get it done with a bit more time spent. My computer has an archaic K6 AMD cpu so I need to use a legacy kernel and older packages, so recent inadyn rpms don't work!


All times are GMT -5. The time now is 06:46 PM.