Gentoo Logo
Gentoo Spaceship

Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-alt
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
To: gentoo-alt@g.o
From: Peter Abrahamsen <rainhead@...>
Subject: Re: Re: Launchd plists, anyone?
Date: Thu, 30 Apr 2009 16:11:05 -0700
Hi all,

Well you're certainly right, Dirk, that one launchd plist for all of
Gentoo would be easier than distributing a plist per daemon and
worrying about where to put it. We'd lose some of the functionality of
launchd, but it's probably a win for non-Darwin prefix users if we
work on maintaining init.d scripts.

Is the problem with the runlevel not getting reset to do with your
launchagent being fire-and-forget, with no reboot-time hook?

Perhaps we could write a small application to stay resident and
respond to launchd, shutting daemons down cleanly on reboot.


On Tue, Apr 28, 2009 at 6:03 AM, zAfi <nietonfir@...> wrote:
> Well, I like the idea as well, especially what Dirk suggested as this
> would fit very well in the whole prefix approach and wouldn't require
> that much patches imho. ;)
> For your mysqld autostartup, simply create a com.mysql.mysqld.plist
> file at /Library/LaunchDaemons with the following content (change to
> your needs):
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
> "">
> <plist version="1.0">
> <dict>
>    <key>GroupName</key>
>    <string>mysql</string>
>    <key>KeepAlive</key>
>    <true/>
>    <key>Label</key>
>    <string>com.mysql.mysqld</string>
>    <key>Program</key>
>    <string>/Users/*/Gentoo/usr/bin/mysqld_safe</string>
>    <key>UserName</key>
>    <string>*USERNAME_here_under_which_the_process_should_run*</string>
> </dict>
> </plist>
> chmod 644 and chown root:wheel
> Kudos to macports...
> Another way would be to drop mysqld_safe into your autostart objects
> in your system preferences...
> bye
> 2009/4/28 Alexander Kellett <a@...>:
>> sorry for the lame contentless reply... hope positive feedback is welcome.
>> i like this idea specifically a lot, and in general the addition of
>> start scripts (currently i'm just starting mysqld on the command line
>> each time i reset my mac, which is quite frustrating).
>> launchd is very blackboxish to me, while i know gentoo start up
>> scripts well. maybe a hybrid approach could be found without too much
>> code dup that is ideal for either?

Launchd plists, anyone?
-- Peter Abrahamsen
Re: Launchd plists, anyone?
-- Dirk Tilger
Re: Re: Launchd plists, anyone?
-- Alexander Kellett
Re: Re: Launchd plists, anyone?
-- zAfi
Lists: gentoo-alt: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: Launchd plists, anyone?
Next by thread:
Re: Launchd plists, anyone?
Previous by date:
Re: Re: Mesa header in media-libs/apple-opengl-2
Next by date:
Re: Prefix keywords in main tree

Updated Jun 17, 2009

Summary: Archive of the gentoo-alt mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.