On Mon, 03 Mar 2008 16:50:49 +0100, Michael Haubenwallner
<[EMAIL PROTECTED]> 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@lists.gentoo.org mailing list

Reply via email to