| From | Sent On | Attachments |
|---|---|---|
| Jos Backus | Jan 16, 2012 12:52 pm | |
| Doug Barton | Jan 16, 2012 6:52 pm | |
| Jos Backus | Jan 16, 2012 7:40 pm | |
| Doug Barton | Jan 16, 2012 9:10 pm | |
| Jos Backus | Jan 16, 2012 10:31 pm | |
| Warner Losh | Jan 16, 2012 11:10 pm | |
| Doug Barton | Jan 16, 2012 11:33 pm | |
| Doug Barton | Jan 16, 2012 11:50 pm | |
| Dag-Erling Smørgrav | Jan 17, 2012 12:49 am | |
| Dag-Erling Smørgrav | Jan 17, 2012 1:00 am | |
| Dag-Erling Smørgrav | Jan 17, 2012 1:25 am | |
| Bruce Evans | Jan 17, 2012 4:53 am | |
| Tom Rhodes | Jan 17, 2012 6:23 am | |
| Warner Losh | Jan 17, 2012 9:29 am | |
| Diane Bruce | Jan 17, 2012 10:00 am | |
| Julian Elischer | Jan 17, 2012 10:16 am | |
| Peter Wemm | Jan 17, 2012 10:50 am | |
| Jos Backus | Jan 17, 2012 11:36 am | |
| Baptiste Daroussin | Jan 17, 2012 12:17 pm | |
| Xin LI | Jan 17, 2012 12:19 pm | |
| Jos Backus | Jan 17, 2012 1:27 pm | |
| Jos Backus | Jan 17, 2012 1:29 pm | |
| Jos Backus | Jan 17, 2012 1:33 pm | |
| Jos Backus | Jan 17, 2012 1:46 pm | |
| Jos Backus | Jan 17, 2012 1:49 pm | |
| Jos Backus | Jan 17, 2012 1:53 pm | |
| Ivo Vachkov | Jan 17, 2012 1:56 pm | |
| Jos Backus | Jan 17, 2012 1:57 pm | |
| Jos Backus | Jan 17, 2012 2:04 pm | |
| Doug Barton | Jan 17, 2012 2:06 pm | |
| Jos Backus | Jan 17, 2012 2:07 pm | |
| Jos Backus | Jan 17, 2012 2:08 pm | |
| Warner Losh | Jan 17, 2012 2:08 pm | |
| Tom Rhodes | Jan 17, 2012 3:52 pm | |
| Jos Backus | Jan 17, 2012 5:38 pm | |
| Ed Maste | Jan 17, 2012 5:56 pm | |
| Jos Backus | Jan 17, 2012 6:17 pm | |
| David Xu | Jan 19, 2012 5:50 am |
| Subject: | Re: Importing djb's public domain daemontools? | |
|---|---|---|
| From: | Jos Backus (jo...@catnook.com) | |
| Date: | Jan 17, 2012 5:38:41 pm | |
| List: | org.freebsd.freebsd-arch | |
On Tue, Jan 17, 2012 at 3:52 PM, Tom Rhodes <trho...@freebsd.org> wrote:
[snip] That bug could be fixed (IIRC what it was) - and it does most of the legwork you're talking about, removing pidfile requirements would probably be trivial for someone with a free evening. Regardless, I tried to find a common ground with launchd and nothing, the community is more than welcome to make changes. Maybe I'll just test build and bring it in, then people can make it work the way they'd like. ;)
I'm not opposed to this if the consensus is that we want to try this.
Here are some of the things I like about daemontools that I would want any accepted solution to support, as I have actively used all these features in the past: - Decouple running of the service from the user controlling the service. With daemontools, this is handled by the service run script being run by supervise in response to a command sent across a UNIX domain socket. No environment variables or other user state can leak into the service process by default. - The ability for arbitrary sets of (non-root) users to control a service. With daemontools this can be achieved by manipulating the UNIX domain socket permissions for a service. - The ability to reliably deal with crashing processes and be able to take action upon signals/non-zero exits. With daemontools-encore, the finish script lets one fine-tune these cases, and standard daemontools can automatically restart a service. - Simple command interface to bring a service up or down, up once (one-shot) or send signals. With daemontools, the svc command is used for this. - Simple command interface to see the status of a service, including its uptime and pending status. E.g. with daemontools, svstat will display service status and uptime, including if a service wants to go down. - Simple service configuration. In daemontools, the file system is used. This makes it possible to use tools such as `echo', `rm' and `ln -s' to manipulate and configure services independently from each other. I don't like a single shared configuration file such as /etc/inittab because it makes it difficult to edit services safely as the wrong edit can affect all services (think Puppet). E.g. with daemontools, enabling a service can be as simple as an `ln -s' command. Editing the state of one service should not be able to affect any other service. - Handle logging of stdout/stderr. daemontools uses the associated log service for this, usually with multilog. - No reliance on pidfiles. In daemontools, supervise is the parent of a service so it already knows its child's pid.
If fsc can be made to do all these things too and we feel more comfortable with it than importing daemontools, that's great.
Jos
-- Jos Backus jos at catnook.com
_______________________________________________ free...@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "free...@freebsd.org"





