View previous topic :: View next topic |
Author |
Message |
Mage2k n00b
Joined: 26 Sep 2003 Posts: 15
|
Posted: Sat Feb 19, 2005 2:55 am Post subject: Runscripts not starting... |
|
|
Hello, I was wondering if anyone could help me out:
I have added started scripts for mysql and apache (both from installations from their websites, not ebuilds) to /etc/init.d and added them to the default runlevel via rc-update. However, neither is starting up when I boot system. rc-status lists both in the default runleve, but they are off. Both scripts have execute permissions enabled. The really confusing thing is that I had both of these starting up fine a week ago, but today I decided to nix the installations of both and start over (mainly because I wanted Apache 1.3 instead of 2), but the new installations don't start correctly. Any ideas? _________________ peace and (trance) out
Mage |
|
Back to top |
|
|
thefatdx n00b
Joined: 03 Oct 2004 Posts: 40 Location: Australia
|
Posted: Sat Feb 19, 2005 5:47 am Post subject: |
|
|
gentoo uses pretty different init scripts to standard ones. Could you post up the init scripts you have placed in /etc/init.d |
|
Back to top |
|
|
Mage2k n00b
Joined: 26 Sep 2003 Posts: 15
|
Posted: Fri Mar 11, 2005 10:01 am Post subject: |
|
|
Well, I know that the issue isn't one of compatiblity as, like I said, these scripts started fine for me before. Also, I've since tried adding other scripts (such as for entrance which is pretty simple and definitely fits the gentoo runscript format) and nothing will start for me.
What can I do to figure out what the problem is? Is there some configuration file that I can look at?
Mage2k |
|
Back to top |
|
|
Mage2k n00b
Joined: 26 Sep 2003 Posts: 15
|
Posted: Fri Mar 11, 2005 10:18 am Post subject: |
|
|
AHA! I found something. Although, I don't know if it really means anything: After boot a file for each runscript that didn't start is placed in the /var/lib/init.d directory whose name is the script name appended with a number, e.g. for the entrance runscript: entrance-5999 and the number changes after each boot and is identical for each script.
Inside each file are the runscript's contents enclosed in function test_script(){..}.
E.g.
entrance-5999 contents:
function_testscript(){
...
(entrance runscripts contents)
...
}
Any ideas? |
|
Back to top |
|
|
Mage2k n00b
Joined: 26 Sep 2003 Posts: 15
|
Posted: Fri Mar 11, 2005 11:10 am Post subject: |
|
|
Nevermind, after crawling through a bunch of code I found where those files are coming from and it turns out that the scripts I'm trying to use are not in fact valid Gentoo initscripts....
Mage2k _________________ peace and (trance) out
Mage |
|
Back to top |
|
|
|