Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't find service "local"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
raid517
l33t
l33t


Joined: 06 Mar 2003
Posts: 946

PostPosted: Mon Aug 23, 2004 8:16 am    Post subject: Can't find service "local" Reply with quote

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
View user's profile Send private message
bunsen
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2003
Posts: 105

PostPosted: Mon Aug 23, 2004 8:40 am    Post subject: Reply with quote

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
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Mon Aug 23, 2004 8:44 am    Post subject: Reply with quote

/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
Code:
rc-status

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 :oops: ) 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
View user's profile Send private message
Cuardin
l33t
l33t


Joined: 06 Feb 2003
Posts: 713
Location: vasastaden.stockholm.se

PostPosted: Mon Aug 23, 2004 8:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum