Gentoo Archives: gentoo-alt

From: Alexander Kellett <a@×××××××.net>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] Re: Launchd plists, anyone?
Date: Tue, 28 Apr 2009 12:36:54
Message-Id: f56996a30904280536t6ac73713j293f2e60d902def2@mail.gmail.com
In Reply to: [gentoo-alt] Re: Launchd plists, anyone? by Dirk Tilger
1 sorry for the lame contentless reply... hope positive feedback is welcome.
2
3 i like this idea specifically a lot, and in general the addition of
4 start scripts (currently i'm just starting mysqld on the command line
5 each time i reset my mac, which is quite frustrating).
6
7 launchd is very blackboxish to me, while i know gentoo start up
8 scripts well. maybe a hybrid approach could be found without too much
9 code dup that is ideal for either?
10
11 On Tue, Apr 28, 2009 at 8:58 AM, Dirk Tilger <dirk@××××××.de> wrote:
12 > On 2009-04-23, Peter Abrahamsen <rainhead@×××××.com> wrote:
13 >> I've found myself crafting some launchd plists for some daemons we use
14 >> here, such as postgresql. Are these things that other people are
15 >> interested in? I could file a bug with a copy of the plist file (to be
16 >> installed into usr/share) and a patch to the ebuild to issue install
17 >> instructions where appropriate, if this would be useful to other
18 >> folks.
19 >
20 > Yes, me. ;)
21 >
22 > But actually, I had a different approach in mind (I believe). One of the
23 > things that drove me to Gentoo was how the runlevel scripts dealt with
24 > dependencies.
25 >
26 > I have been using a custom baselayout-prefix ebuild for a while (1.5a)
27 > that actually allows me to start services just like on a normal Gentoo.
28 > The only drawback is that the runlevel management does not notice
29 > reboots and thus does not notice when running daemons just went missing.
30 >
31 > My idea was to have a single LaunchAgent plist and that would be
32 > starting the runlevel management of the prefixed Gentoo just about the
33 > same way "init" is doing it for normal Gentoo when you log in.
34 >
35 > Then one can add service scripts using rc-update or whatever way one
36 > would use on a normal Gentoo. We would need something for the shutdown,
37 > too, and here I haven't got any good ideas yet.
38 >
39 > Maybe we can work together one this?
40 >
41 > Dirk.
42 >
43 >
44 >

Replies

Subject Author
Re: [gentoo-alt] Re: Launchd plists, anyone? zAfi <nietonfir@×××××.com>
[gentoo-alt] Re: Launchd plists, anyone? Dirk Tilger <dirk@××××××.de>