1 |
On 2009-04-23, Peter Abrahamsen <rainhead@×××××.com> wrote: |
2 |
> I've found myself crafting some launchd plists for some daemons we use |
3 |
> here, such as postgresql. Are these things that other people are |
4 |
> interested in? I could file a bug with a copy of the plist file (to be |
5 |
> installed into usr/share) and a patch to the ebuild to issue install |
6 |
> instructions where appropriate, if this would be useful to other |
7 |
> folks. |
8 |
|
9 |
Yes, me. ;) |
10 |
|
11 |
But actually, I had a different approach in mind (I believe). One of the |
12 |
things that drove me to Gentoo was how the runlevel scripts dealt with |
13 |
dependencies. |
14 |
|
15 |
I have been using a custom baselayout-prefix ebuild for a while (1.5a) |
16 |
that actually allows me to start services just like on a normal Gentoo. |
17 |
The only drawback is that the runlevel management does not notice |
18 |
reboots and thus does not notice when running daemons just went missing. |
19 |
|
20 |
My idea was to have a single LaunchAgent plist and that would be |
21 |
starting the runlevel management of the prefixed Gentoo just about the |
22 |
same way "init" is doing it for normal Gentoo when you log in. |
23 |
|
24 |
Then one can add service scripts using rc-update or whatever way one |
25 |
would use on a normal Gentoo. We would need something for the shutdown, |
26 |
too, and here I haven't got any good ideas yet. |
27 |
|
28 |
Maybe we can work together one this? |
29 |
|
30 |
Dirk. |