LinuxQuestions.org
Visit Jeremy's Blog.
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 07-19-2009, 11:35 AM   #1
Black187
LQ Newbie
 
Registered: Nov 2005
Posts: 26

Rep: Reputation: 0
rc.local does not work - Centos


Hello,

It seems my system does not statup scripts in rc.local file (/etc/rc.d/). I tried the following (just for test):

#!/bin/sh

touch /usr/src/test
echo "SPERMA" >> /usr/src/test


And it did not make any files or whatever.


Edit: Solved it - I made new rc.local script, but I forgot to make 755 rights.
I installed centos with bare minimum, is it possible that I have to enable the system, to check rc.local when it boots up?

Last edited by Black187; 07-19-2009 at 11:42 AM.
 
Old 07-19-2009, 11:38 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Any error message?
Does the script work when you execute it ?
Is /etc/rc.local executable?
 
Old 07-19-2009, 11:43 AM   #3
Black187
LQ Newbie
 
Registered: Nov 2005
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by repo View Post
Is /etc/rc.local executable?
Jup, that was the problem, I've allready edit my first post. As soon as I posted here, i checked the rights

Sorry for the thread.
 
Old 07-19-2009, 01:49 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
Quote:
Originally Posted by Black187 View Post
Sorry for the thread.
No need to apologise: now if someone else has the same problem, they may come across this thread, and find the solution.
 
  


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
CentOS: add SAN directory to local file system RobertSubnet Linux - Newbie 4 06-12-2009 12:32 PM
LXer: Install OpenSuse 11 DomU at Xen 3.3 CentOS 5.2 Dom0 via local HTTP Server (all LXer Syndicated Linux News 0 10-18-2008 11:20 AM
LXer: Install CentOS 5.2 & F9 PV DomUs at OpenSuse 11 Dom0 via local HTTP Server (all LXer Syndicated Linux News 0 10-16-2008 09:30 AM
LXer: Creating A Local Yum Repository (CentOS) LXer Syndicated Linux News 0 06-18-2007 07:01 AM
how do i set up an local apt respository on centos 4.2 server kiraninfotech Linux - Software 0 06-06-2006 03:20 AM


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