1 |
On Mon, 03 Mar 2008 16:50:49 +0100, Michael Haubenwallner |
2 |
<haubi@g.o> wrote: |
3 |
> For hpux fex this just is adding some symlinks: |
4 |
> /sbin/init.d/name -> /my/prefix/sbin/init.d/distccd |
5 |
> /sbin/rc3.d/S990name -> /sbin/init.d/name # to start in runlevel 3 |
6 |
> /sbin/rc2.d/K100name -> /sbin/init.d/name # to kill for runlevel 2 |
7 |
> |
8 |
> When doing so with OpenRC's main process, it could integrate smoothly |
9 |
> with normal system reboot and start prefixed init.d scripts. |
10 |
|
11 |
Yes, that should work fine if it ends up calling |
12 |
/sbin/init.d/name start |
13 |
and |
14 |
/sbin/init.d/name stop |
15 |
to start and stop it. |
16 |
|
17 |
You just have to somehow inject |
18 |
rc sysinit |
19 |
into the boot process to remove all state data. |
20 |
|
21 |
But a better way would be like so |
22 |
|
23 |
/my/prefix/sbin/rc-wrapper |
24 |
#/bin/sh |
25 |
case "$1" in |
26 |
start) /my/prefix/sbin/rc default;; |
27 |
stop) /my/prefix/sbin/rc single;; |
28 |
esac |
29 |
|
30 |
As you then get OpenRC handling the dependency order if you have >1 |
31 |
service. |
32 |
|
33 |
Thanks |
34 |
|
35 |
Roy |
36 |
|
37 |
-- |
38 |
gentoo-dev@l.g.o mailing list |