LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   rc.local does not work - Centos (https://www.linuxquestions.org/questions/linux-newbie-8/rc-local-does-not-work-centos-741197/)

Black187 07-19-2009 11:35 AM

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. :D
I installed centos with bare minimum, is it possible that I have to enable the system, to check rc.local when it boots up?

repo 07-19-2009 11:38 AM

Any error message?
Does the script work when you execute it ?
Is /etc/rc.local executable?

Black187 07-19-2009 11:43 AM

Quote:

Originally Posted by repo (Post 3612803)
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.

rjlee 07-19-2009 01:49 PM

Quote:

Originally Posted by Black187 (Post 3612812)
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.


All times are GMT -5. The time now is 05:08 AM.