View previous topic :: View next topic |
Author |
Message |
raid517 l33t
Joined: 06 Mar 2003 Posts: 946
|
Posted: Mon Aug 23, 2004 8:16 am Post subject: Can't find service "local" |
|
|
Hi I have no idea how this service got deleted or stopped, but often when I emerge something I get an error message saying 'can't find service local' which is needed by xyz merged program.
Can anybody tell me what this is, where it is normally located and how to renistall it in case it has been deleted?
Many thanks!
GJ |
|
Back to top |
|
|
bunsen Tux's lil' helper
Joined: 10 Aug 2003 Posts: 105
|
Posted: Mon Aug 23, 2004 8:40 am Post subject: |
|
|
There's an init script that can be used for starting and stopping things at boot and shutdown.
In /etc/init.d it's just called local. What it starts and stops is specified in /etc/conf.d/local.start and /etc/conf.d/local.stop
I don't know what ebuild it comes from, though I suspect baselayout would be a good starting point. |
|
Back to top |
|
|
adaptr Watchman
Joined: 06 Oct 2002 Posts: 6730 Location: Rotterdam, Netherlands
|
Posted: Mon Aug 23, 2004 8:44 am Post subject: |
|
|
/etc/init.d/local is the last script run in any runlevel - where you can put anything you'd like to happen after the boot process is finished.
Run
to see what is active in the current runlevel.
To see the interaction between the various boot processes, check the /var/cache directory (I think, no Gentoo at my fingers ) for a directory holding links to all the boot processes run or started.
Gentoo uses this to resolve the correct boot sequence for each runlevel, and to determine whether a service was started through init.d.
In case you did not want to know all this (but how could you not? this is Gentoo!) just run:
Code: | rc-update add local default |
and see what happens... _________________ >>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen |
|
Back to top |
|
|
Cuardin l33t
Joined: 06 Feb 2003 Posts: 713 Location: vasastaden.stockholm.se
|
Posted: Mon Aug 23, 2004 8:46 am Post subject: |
|
|
That was a bit of a strange error message, but there is a service /etc/init.d/local. It is installed with baselayout, so you have it from the beginning. It should also be started at all reasonable runlevels ( check with 'rc-status' ).
An FS corruption might have messed up the file thoug, so perhaps you could reemerge baselayout. That tends to fix alot of problems of this kind. _________________ Part of "The adopt an unanswered post initiative" |
|
Back to top |
|
|
|