I followed exactly the following instruction. I put rc5.d file in /etc/init.d folder. I uncommented the line after #! /bin/sh. However, noip2 fails to start at boot up. How do i start troubleshoot?
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 ???)
#######################################################
#! /bin/sh
# . /etc/rc.d/init.d/functions # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2."
killproc -TERM /usr/local/bin/noip2
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
#######################################################
Where the 'X' in rcX.d is the value obtained by running the
following command
grep initdefault /etc/inittab | awk -F: '{print $2}'
Killproc can be downloaded from
ftp://ftp.suse.com/pub/projects/init
Alternatively, you can uncomment the line after #! /bin/sh