LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 06-15-2008, 03:41 AM   #1
xeross
Member
 
Registered: Apr 2008
Location: The Netherlands
Distribution: Debian 4.0
Posts: 48

Rep: Reputation: 15
Slackware 12.1 RC.Local won't start (AMP)


Hey, i've setup apache php mysql on my server, i added start commands to the rc.local file, but after reboot they aren't started, rc.local is chmodded with -x. and if i manually execute if after boot it works.

Quote:
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

/etc/rc.d/rc.mysqld start
echo MySQL Started
/usr/local/apache/bin/apachectl start
echo Apache Started
/usr/local/sbin/pure-ftpd &
echo FTP Started
That's my rc.local, can someone tell why it doesn't get called ?
I'm using slackware 12.1
 
Old 06-15-2008, 05:17 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Because it is "chmod -x" rather than "chmod +x"

Also, you would be better served by posting your Slackware
questions in our Slackware forum.
 
Old 06-15-2008, 05:25 AM   #3
xeross
Member
 
Registered: Apr 2008
Location: The Netherlands
Distribution: Debian 4.0
Posts: 48

Original Poster
Rep: Reputation: 15
Ok, stupid me, i fixed it by removing the if is executable checks from rc.M
 
Old 06-15-2008, 05:36 AM   #4
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 34
Ok i'm curious, did you install MySQL and Apache using the packages from slackware. If you did then you don't need to add anything to rc.local. Look in the rc.d directory for rc.mysqld and rc.httpd. they are normally told to start from rc.M

 
  


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
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 07:10 AM
(FreeBSD && Fedora Core 4 && Slackware 10.0) Filesystem Support taylor_venable *BSD 1 07-14-2005 03:24 PM
Auto start with rc.local kingchaos Linux - Newbie 6 09-18-2004 03:01 PM
vncserver won't start from rc.local GD_19 Linux - Software 5 03-13-2004 01:27 AM
Slackware 9.1 & ALSA-Where do i start? ic3 Slackware 4 10-31-2003 02:12 PM


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