LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-04-2013, 03:03 PM   #1
LinuxPi
LQ Newbie
 
Registered: Mar 2013
Posts: 2

Rep: Reputation: Disabled
Trying to run no-ip client automatically at boot up, but new to Linux.


I already downloaded the client, installed it, and ran it, works fine. Now, Im looking to have it start the client at boot up. Here are the instructions:

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


... I'm using a Raspberry Pi running Occidentials distro from Adafruit. When I run the grep command that it says above, I get a response or echo of 2. This is where I get confused. I'm looking for this /etc/init.d/rc2.d directory but I cant find it. So then I started up WinSCP to try to find it that way. I found a rc2.d file under the /etc directory but NOT under the /etc/init.d

So, if your still with me, this is where Im at with this problem. any help?
 
Old 03-04-2013, 04:27 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
/etc/rc2.d/ will be correct.

The folder structures are slightly different from one distro to the next but the "rc*.d" is an FHS standard for run level scripts. You should have an rc*.d folder for each run level 0-6.
 
  


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
nfs client does not mount server-shares automatically on boot rsp Debian 2 07-29-2007 07:26 AM
Run Command on boot automatically qqcoisa Linux - Hardware 1 03-20-2006 12:27 AM
How can a command/program be run automatically on boot? chuanweizuo Linux - Hardware 1 11-28-2005 10:36 AM
How do I get /etc/rc.fw to run automatically upon boot? abefroman Linux - Networking 1 04-30-2005 11:02 PM
How do I automatically run at boot an X program or script cmisip Linux - General 4 01-05-2003 06:30 PM


All times are GMT -5. The time now is 11:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration