LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-28-2011, 10:26 AM   #1
Robert.Thompson
Member
 
Registered: Nov 2009
Location: Montreal, Quebec, Canada
Distribution: LinuxMint 20 Cinnamon
Posts: 589

Rep: Reputation: 49
How to have XAMPP launch at start up?


Hello:

I installed XAMPP and would like it to 'start' when I launch SlackWare.

Now, I must become 'root' and issue the following:

Code:
bash-4.1# /opt/lampp/lampp start
I would like to know which file(s) I need to alter and what that alteration should be.

Also, should I issue the 'stop' command to XAMPP upon closing SlackWare, and if so, what and where?

EDIT: I gave up googling for XAMPP startup and found: http://humanreadable.nfshost.com/sde...p_shutdown.htm.

It seems that I should add 'something' to my etc/rc.d/rc.local file.

Do I just paste the command that I use as 'root'? I have no experience with scripts.

Thanks for any advice on this,

Last edited by Robert.Thompson; 09-28-2011 at 10:52 AM.
 
Old 09-28-2011, 01:55 PM   #2
hakan56
Member
 
Registered: Nov 2004
Location: Sweden
Distribution: Slackware64-14.0
Posts: 53

Rep: Reputation: 9
Yes, you are on the right track....put the command in /etc/rc.d/rc.local, then you take a copy of it and rename it to rc.local_shutdown ...and change the command to stop instead of start. Make sure they are "+x" (chmod +x filename).

Look in /etc/rc.M to see the start..
Quote:
# Start the local setup procedure.
if [ -x /etc/rc.d/rc.local ]; then
. /etc/rc.d/rc.local
fi

..and if you look in /etc/rc.6 the stop..
Quote:
# Run any local shutdown scripts:
if [ -x /etc/rc.d/rc.local_shutdown ]; then
/etc/rc.d/rc.local_shutdown stop
fi
edit, maybe this is better for stopping, change /etc/rc.6..
Quote:
# Stop the Apache web server:
if [ -x /etc/rc.d/rc.httpd ]; then
/etc/rc.d/rc.httpd stop
fi
..to..
Quote:
# Stop the Apache web server:
if [ -x /opt/lampp/lampp ]; then
/opt/lampp/lampp stop
fi
/Håkan

Last edited by hakan56; 09-28-2011 at 02:05 PM. Reason: better way to stop.
 
  


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
XAMPP: Couldn't Start MySQL! gilrez Linux - Server 3 12-23-2012 07:48 AM
XAMPP Won't Start jan1024188 Linux - Software 10 03-02-2010 11:33 AM
XAMPP-MySQL does not start on FC5 vikram_cvk Linux - Software 2 09-24-2008 04:52 PM
MySQL failed to start in XAMPP bhatmahesht Linux - Software 7 07-23-2008 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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