How to start ddclient at boot time?
I installed ddclient 3.6.3-131.i586.rpm on a Suse 9.1 distribution
I'm able to start it manually, no problem. But unable to initiate it at boot time.
manual command :
cd /etc/init.d
ddclient start
It work fine!
The configuration file: /etc/ddclient.conf is correctly configured and my IP is updated at wwwdyndns.org
Now to run ddclient at run level 5
Create a symbolic link in /etc/init.d/rc5.d
to create the link: (assuming the script ddclient is in /etc/init.d )
cd /etc/init.d/rc5.d
ln -s ../ddclient S20ddclient
if we give a try:
cd /etc/init.d/rc5.d
./S20ddclient start (That's what the boot will do. I believe...)
Result:
Starting ddclient: S20ddclient: line daemon: command not found
what is the problem here???
Ok, the script is not so big...
There is a Start, stop, restart and status
Here is how the start case looks like:
start)
# Start daemons.
echo -n "Startin ddclient: "
touch /var/lock/subsys/ddclient
daemon ddclient -daemon 300
echo
;;
stop)... and so on...
Could someone please tell me what to do?
regards,
Nitrof
|