LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-21-2004, 01:56 PM   #1
logo
Member
 
Registered: Sep 2004
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
Running a script at systsem startup


Hello all.
I have a little problem. I want to make a program start automaticly when I reboot my system. In the readme for this program (it' called DUC and it's used to update my Ip to the no-ip service), they say to place a script into my
/etc/init.d/rc5.d or /sbin/init.d/rc5.d folders. The script (I modified it, because I run the program from my home folder, not from /usr/local/) looks like this:

#############################################
# . /etc/rc.d/init.d/functions # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
/home/<myuser>/noip/noip2 -c /home/<myuser>/noip/no-ip2.conf
;;
stop)
echo -n "Shutting down noip2."
killproc -TERM /home/<myuser>/noip/noip2 -c /home/<myuser>/noip/no-ip2.conf
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
#############################################

The problem is, that I don't have neither /etc/init.d/rc5.d, nor /sbin/init.d/rc5.d folders. Where should I put this script to run it ? I don't know what's important in this script and what's not, so could any shorten it so it would just run the program without any output and those usage commands(I don't really need them)?
THX
 
Old 09-21-2004, 02:29 PM   #2
ky-lab_rat
Member
 
Registered: Jan 2004
Posts: 44

Rep: Reputation: 15
try it in /etc/rc.d/rc.local It's kind of like the autoexec for dos/windows
 
  


Reply



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
Problems in running a script as a daemon at startup fahad26 Programming 5 03-07-2012 07:24 AM
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
Running Perl Script upon startup andy7t Linux - Software 1 04-20-2005 04:43 PM
Running a service at startup correro Linux - General 14 02-18-2003 07:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:06 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