Register a domain and help support LQ
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 12-08-2004, 04:21 PM   #1
LQ Newbie
Registered: Nov 2004
Location: Creston, BC, Canada
Distribution: Debian, ClearOS, Slitaz
Posts: 15

Rep: Reputation: 0
Lightbulb start server at boot in gentoo?

In linux I've always had problems getting servers and stuff to start at boot, unless installed using apt-get in debian or pkg_add in freebsd, because they help you with it.
I prefer the XAMPP approach because using emerge actually compiles everything and the XBox not a very powerful machine, so its a time thing.
I have a XAMPP server running on GentooX and I cant get it to start at boot.
These commands are to start and stop it
/opt/lampp/lampp start
/opt/lampp/lampp stop
The script "lampp" can be moved and run from anyware as long as its by root.
I tried to copy the script to /etc/init.d/ and run
rc-update add lampp default
It seemed like a good idea from what i had read,
But I'm afraid I don't know exactly what I'm doing.
Can someone help me write an init script that works?

Edit:I got this so far

depend() {


start() {
  ebegin "Starting XAMPP"
  start-stop-daemon --start --quiet --exec /opt/lampp/lamppstart
  eend $?
and the lamppstart is a executable file with this in it (I can run it directly and it works)
exec lampp start
still not working

Last edited by snipes420; 12-08-2004 at 08:22 PM.
Old 12-08-2004, 09:26 PM   #2
LQ Newbie
Registered: Nov 2004
Location: Creston, BC, Canada
Distribution: Debian, ClearOS, Slitaz
Posts: 15

Original Poster
Rep: Reputation: 0
Horray! I got it.

I added this line to my /etc/conf.d/local.start file

/opt/lampp/lampp start
and it works great.

I found it at the Xampp forums which I hadn't seen til tonight. XAMPP Forums


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 do I start installing stage 3 of gentoo from universal gentoo 2005-1? kazuya1977 Linux - General 1 11-11-2005 11:30 AM
Gentoo whon't boot at start up for installtion [FOF]Ryan[ENS] Linux - Software 10 02-10-2005 12:17 AM
Gentoo 2004.3-r1 installed. How DO i start KDE at boot? Junior41180 Linux - Distributions 3 01-25-2005 12:11 PM
gentoo: problems on X-server start atom Linux - Hardware 2 11-11-2004 12:04 PM
making halflife server start at boot up progster Linux - Software 2 07-20-2002 08:06 AM

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