LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Start noip2 process at boot up (https://www.linuxquestions.org/questions/mandriva-30/start-noip2-process-at-boot-up-320901/)

kt8993 05-06-2005 09:47 PM

Start noip2 process at boot up
 
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

michaelk 05-06-2005 10:47 PM

I will assume that mandriva system services is still the same as the old mandrake. You will need to modify the startup script to add run level configuration. The following man pages has an example:

http://gd.tuwien.ac.at/linuxcommand....hkconfig8.html

The file should be saved to the init.d file. Then to add the service run the command
chkconfig --add noip2d (or whatever you called the script). This will add the entry to the rcx.d directories. You should be able to start the service via the commands
service noip2 start | stop

You will then need to configure the service to run in the desired runlevel.

chkconfig --level 35 noip2d on

FYI the last boot script is /etc/rc.local and noip2 can also be run from this script independent of a particular runlevel.


All times are GMT -5. The time now is 03:27 PM.