LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 05-06-2005, 09:47 PM   #1
kt8993
Member
 
Registered: Sep 2004
Posts: 34

Rep: Reputation: 15
Cool 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
 
Old 05-06-2005, 10:47 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,177

Rep: Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux boot up process Vs. Windows boot up process darkskull Linux - Software 7 12-30-2006 04:21 PM
noip2 & IP address BerlinBadger Linux - Networking 1 12-02-2005 12:40 PM
Start process at boot frkstein Ubuntu 1 05-15-2005 01:53 PM
start date and start time of a process - jiffies Yoko Programming 0 12-04-2004 08:12 AM
eth0 wont start with boot process Splin Linux - Networking 3 04-13-2004 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration