Re: Upstart: feature questions and test code

2008-06-10 Thread Casey Dahlin
Garrett Cooper wrote: One point of concern... has anyone considered executing upstart in a failover fashion at all, i.e. one process runs as pid = 1 and another pid = 2, so pid = 1 watches the processes it spawns + the failover daemon, while pid = 2 just monitors the pid = 1 copy (seems

[MERGE] States

2008-06-18 Thread Casey Dahlin
This is code for the new states feature. Look it over and see if anything sticks out. --CJD -- upstart-devel mailing list upstart-devel@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel

Re: Clarification on upstart-0.5 and dbus usage

2008-06-18 Thread Casey Dahlin
Garrett Cooper wrote: Hi again, There have been a flurry of emails passed internal dev lists, and I believe (given past experience with dbus) there is some confusion as to what the role is of dbus in the upstart project. So, I was wondering if someone could briefly discuss from a

Re: Clarification on upstart-0.5 and dbus usage

2008-06-18 Thread Casey Dahlin
Garrett Cooper wrote: On Wed, Jun 18, 2008 at 1:11 PM, Casey Dahlin [EMAIL PROTECTED] wrote: Garrett Cooper wrote: Hi again, There have been a flurry of emails passed internal dev lists, and I believe (given past experience with dbus) there is some confusion as to what

Re: Clarification on upstart-0.5 and dbus usage

2008-06-18 Thread Casey Dahlin
Scott James Remnant wrote: On Wed, 2008-06-18 at 16:11 -0400, Casey Dahlin wrote: The DBus interface can be accessed in one of 2 ways. One is actually running the dbus daemon, and accessing the com.ubuntu.Upstart object on the system bus. Actually, this is the only supported way

Re: sysvinit backward compatibility in upstart .5

2008-07-24 Thread Casey Dahlin
Sandeep Puddupakkam (spuddupa) wrote: Hi, I downloaded the upstart (.5) code from trunk. I was able to get the sysvinit backward compatibility going with upstart (.3.9). I am trying to do the same with the code in trunk. I notice that runlevel, telinit etc are not yet implemented. Are

Re: sysvinit backward compatibility in upstart .5

2008-07-24 Thread Casey Dahlin
Saravanan Shanmugham (sarvi) wrote: -Original Message- From: Casey Dahlin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 24, 2008 2:15 PM To: Saravanan Shanmugham (sarvi) Cc: Sandeep Puddupakkam (spuddupa); upstart-devel@lists.ubuntu.com Subject: Re: sysvinit backward

Re: initctl problem

2008-08-03 Thread Casey Dahlin
Violent Tempest wrote: Hi, I'm trying to convert Fedora 9 init scripts to Upstart 0.5 jobs. I installed bazaar.launchpad.net/~cjdahlin/upstart/dbus-userspace/ in /usr/local/, and added some path fixes to the scripts diff --git a/jobs.d/rcS b/jobs.d/rcS index dca6939..8a71b86 100644 ---

Re: [RFC] Prototype for new Upstart state machine

2008-11-06 Thread Casey Dahlin
Scott James Remnant wrote: On Thu, 2008-11-06 at 10:45 -0500, Casey Dahlin wrote: I've written a prototype for a service state machine which will hopefully behave more simply and cleanly than the present event-driven upstart. I'm posting it here for general comments. Its written in ruby

Re: /etc/inittab respawn daemon entry

2008-12-11 Thread Casey Dahlin
Omon Edeki (Nowell, Inc) wrote: My program does fork(), could that have anything to do with why upstart is not able to respawn it? If so, how can I get around this? The simplest way is to tell it not to :) Most apps take an option. I recommend augmenting yours with one as well. --CJD

[PATCH][NIH] Better semantics for NIH_{SHOULD,ZERO,MUST}

2009-02-17 Thread Casey Dahlin
This patch makes NIH_{SHOULD,ZERO,MUST} return the values of their arguments, so NIH_MUST (foo = bar()); becomes foo = NIH_MUST (bar()); --CJD === modified file 'nih/error.h' --- nih/error.h 2008-05-18 11:38:29 + +++ nih/error.h 2009-02-17 21:09:01 + @@ -95,18 +95,20

Re: Upstart 1.0 development branch

2009-04-30 Thread Casey Dahlin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin Hunter wrote: Oh gosh. No offense intended, but I much prefer the producingoss text over the two blogs in question. The former is a cohesive and well-reasoned rhetoric for entire-process openness, while the latter two are more

Re: Upstart 1.0 development branch

2009-05-05 Thread Casey Dahlin
Scott James Remnant wrote: In any Open Source project, it's quite normal for a developer to go off and do their own thing for a while before submitting or landing the code. This is especially and triply true if they're doing some fundamental changes and don't actually know whether they'll

Proposed 1.0 semantics specification

2009-06-14 Thread Casey Dahlin
This is my attempt to record and formalize Scott's description to me of the way Upstart 1.0 should behave. Its not complete and need some review, but there's a critical mass there now and I think its time to draw attention to it. http://upstart.ubuntu.com/wiki/CaseyDahlin/NewInternalSemantics

Re: Proposed 1.0 semantics specification

2009-06-17 Thread Casey Dahlin
On 06/17/2009 06:06 PM, Matthias Urlichs wrote: Hi, Casey Dahlin: The way its worded in my example the check would happen 1 minute after startup, and never again. Alternately you could trigger it on system_normal is in state 'stopped' for more than 1 minute (which can't

Re: [PATCH] N-ary event operators

2009-08-12 Thread Casey Dahlin
On 08/12/2009 06:12 AM, Scott James Remnant wrote: On Tue, 2009-08-11 at 17:33 -0400, Casey Dahlin wrote: This makes EventOperators N-ary rather than binary trees. It auto-optimizes them with a new event_operator_add_child helper that simply gifts all of the new child's children to the new

[RFC] Edge-triggered upstart

2009-08-15 Thread Casey Dahlin
I've been working on a patch that changes the way events are handled in Upstart (this inspired the N-ary event operators). Currently events have 3 states: pending, handling, and finished. Processing an event works like this: 1) Move event from pending-handling, kick off any jobs that respond

Re: Upstart 1.0 Design discussion

2009-09-12 Thread Casey Dahlin
On 09/11/2009 10:13 PM, Scott James Remnant wrote: On Fri, 2009-09-11 at 17:03 -0400, Casey Dahlin wrote: I've had some suggestions for the Upstart 1.0 design which came up when I spoke to Scott on IRC the other day. I would like to post them here, but for continuity's sake, I figured I'd

Re: [PATCH][NIH] More generic location for pkgconfig

2010-02-05 Thread Casey Dahlin
On Fri, Feb 05, 2010 at 04:01:29PM -0800, Scott James Remnant wrote: On Fri, 2010-02-05 at 18:55 -0500, Casey Dahlin wrote: -pkgconfigdir = $(prefix)/lib/pkgconfig +pkgconfigdir = $(libdir)/pkgconfig NAK. $(libdir) should be /lib for libnih True. Any thoughts on the right way

Re: [PATCH][NIH] More generic location for pkgconfig

2010-02-05 Thread Casey Dahlin
On Sat, Feb 06, 2010 at 12:33:22AM -0500, Casey Dahlin wrote: On Fri, Feb 05, 2010 at 04:01:29PM -0800, Scott James Remnant wrote: On Fri, 2010-02-05 at 18:55 -0500, Casey Dahlin wrote: -pkgconfigdir = $(prefix)/lib/pkgconfig +pkgconfigdir = $(libdir)/pkgconfig NAK. $(libdir

Re: seeking Brick #1 on the Upstart yellow-brick-road

2010-02-08 Thread Casey Dahlin
On Mon, Feb 08, 2010 at 05:54:23PM -0600, Saint DanBert wrote: Folks, I really REALLY want to help with upstart documentation, but I'm dashed if I can find the first brick on the yellow-brick-road. I feel sure that somewhere in the alphabetical list of details volume-G there is a

[PATCH][NIH] nih_parse parsing framework

2010-02-09 Thread Casey Dahlin
/* NIH_ERRORS_H */ === added file 'nih/parse.c' --- nih/parse.c 1970-01-01 00:00:00 + +++ nih/parse.c 2010-02-10 05:38:28 + @@ -0,0 +1,437 @@ +/* libnih + * + * parse.c - Parsing expression grammar parser + * + * Copyright © 2010 Casey Dahlin cdah...@redhat.com + * Copyright © 2010

[RFC][PATCH v2] nih_parse

2010-02-24 Thread Casey Dahlin
:32 + @@ -0,0 +1,783 @@ +/* libnih + * + * parse.c - Parsing expression grammar parser + * + * Copyright © 2010 Casey Dahlin cdah...@redhat.com + * Copyright © 2010 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General