Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-05-2005, 10:35 AM   #1
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, 11:55 AM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 01:00 PM   #3
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


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

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

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