LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-05-2005, 11:35 AM   #1
Abnoba12
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 2, Fedora Core 6, UNBUNTU
Posts: 22

Rep: Reputation: 15
Starting a Program as a Service


I just installed LAMPP on my machine and I want the program to startup when booting. I was thinking I just add it as a service under the "add service" option in fedora core 2. I think it would be easyer to just add it using the shell.

The command to start the program manualy is "opt/lampp/lampp start
 
Old 03-05-2005, 12:55 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
The easiest thing to do would be to add that command to /etc/init.d/rc.local -- this file gets executed on bootup. You could also write a full fledged init script (one that takes at least "start" and "stop" as arguments, put it in /etc/init.d, and use chkconfig to control it. If you want to go this latter route, you're best off looking at the other init scripts at /etc/init.d and seeing how they work.
 
Old 03-05-2005, 02:00 PM   #3
Abnoba12
LQ Newbie
 
Registered: Feb 2005
Distribution: Fedora Core 2, Fedora Core 6, UNBUNTU
Posts: 22

Original Poster
Rep: Reputation: 15
Thank you, that worked.

I like the speed and power of linux, but wow is there a learning curve.
Jacob Weigand
 
  


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
How to prevent a service from starting phonecian Linux - Software 2 10-06-2005 11:57 AM
starting this as a service. dkc_ace Linux - General 15 12-27-2004 10:31 PM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 07:39 PM
starting one service before the other in Rh jayakrishnan Linux - General 2 11-19-2003 01:32 AM
starting up a service Robin01 Linux - Newbie 3 08-31-2003 06:04 AM


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