LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-21-2003, 06:47 AM   #1
KaktusKnight
Member
 
Registered: Dec 2002
Location: Gothenburg, Sweden
Distribution: Suse2.7, Mandrake 8, Redhat ?, Suse 8.2
Posts: 71

Rep: Reputation: 15
start program script when rebooting


How can I start my program scripts when I am rebooting the system?

I have a webserver and I do not want to log in to start the program scripts after rebooting.

I do have a login script that starts the program scripts but to make that work I have to log in to the system.

But as I want to skip the logging in every time after a reboot there must be a way to start the program scripts when the computer reboots?

thanks in advance
 
Old 05-21-2003, 07:18 AM   #2
manthram
Member
 
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
put the script in '/etc/rc.d/rc.local'

or make a executable file and put it in '/etc/rc.d/' directory
 
Old 05-21-2003, 02:15 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
What distro are you using - there should already be a startup script somewhere that just needs enabled.
 
Old 05-22-2003, 02:41 AM   #4
KaktusKnight
Member
 
Registered: Dec 2002
Location: Gothenburg, Sweden
Distribution: Suse2.7, Mandrake 8, Redhat ?, Suse 8.2
Posts: 71

Original Poster
Rep: Reputation: 15
I am using redhat 9, suse 7.2 and suse 8.1.

8.1 for production and redhat 9 and suse 7.2 for testing..

thanks again
 
Old 05-22-2003, 01:29 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
In redhat just type:
chkconfig httpd on

to enable httpd to start on each boot. Then to start it the first time:
service httpd start
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
need a perl script to stop & start program cccc Programming 43 07-23-2005 08:27 PM
How to start a Tcl/Tk script by simply invoking the script file itself ? cyu021 Programming 2 10-10-2004 12:00 PM
Start Program Script Cafrow Linux - Newbie 1 08-17-2003 05:26 AM
start program killi Slackware 8 05-22-2003 05:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:14 AM.

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