Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Roy Marples <roy@...>
Subject: Re: Google SOC 2008
Date: Mon, 3 Mar 2008 16:04:38 +0000

 1.1

On Mon, 03 Mar 2008 16:50:49 +0100, Michael Haubenwallner
<haubi@g.o> wrote:
> For hpux fex this just is adding some symlinks:
> /sbin/init.d/name -> /my/prefix/sbin/init.d/distccd
> /sbin/rc3.d/S990name -> /sbin/init.d/name   # to start in runlevel 3
> /sbin/rc2.d/K100name -> /sbin/init.d/name   # to kill for runlevel 2
> 
> When doing so with OpenRC's main process, it could integrate smoothly
> with normal system reboot and start prefixed init.d scripts.

Yes, that should work fine if it ends up calling
/sbin/init.d/name start
and
/sbin/init.d/name stop
to start and stop it.

You just have to somehow inject
rc sysinit
into the boot process to remove all state data.

But a better way would be like so

/my/prefix/sbin/rc-wrapper
#/bin/sh
case "$1" in
   start) /my/prefix/sbin/rc default;;
   stop)  /my/prefix/sbin/rc single;;
esac

As you then get OpenRC handling the dependency order if you have >1
service.

Thanks

Roy

-- 
gentoo-dev@g.o mailing list


References:
Re: Google SOC 2008
-- Michael Haubenwallner
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Google SOC 2008
Next by thread:
Re: Google SOC 2008
Previous by date:
Re: Google SOC 2008
Next by date:
The eight digit limit


May 29, 2008

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.