[12:29] Hi. I am fairly new at doing ustart scripts. But now I would like to convert an old daemontools service to upstart. What are the events upsart can listen to. I would like it to stop the service when my laptop is on battery power [12:30] Is this possible? [14:15] Alfafa: I guess so [14:16] the thing would be to listen to uevents or are those apm events? [14:18] Alfafa: again differently: upstart does not listen to many events , for every "job" / service you can define your own event names [14:19] keesj: I am on ubuntu hardy. I think gnome-power-manager sends a event over DBUS..or I know it does, but I don't know how I get upstart to pick it up? [14:19] * Alfafa is back. [14:20] from readinf the acpid man page it really should be very easy [14:22] really I would say a) create a job that starts the acpid on startup , b) convert the required events into upstart even "so emit power-in-the-house" in the script [14:22] c) define your jobs that need to listen to the power-in-the-house [14:22] keesj: from what I understand upstart doesn't yet have a way to get DBUS events? I saw some talk of a DBUS proxy...which would convert from DBUS events to upstart events? [14:24] keesj: Hmm..I could also make something which listens to DBUS and emit an upstart event [14:25] keesj: thanks for the help anyway :-) [14:26] and hal will put the messages on dbus? [14:27] on my ubuntu machine I simply have /etc/acpi/battery.d so a one liner would send the events to upstart [14:28] keesj: maok. that sounds easy :-) [14:28] keesj: I am not sure it is hal sending the dbus message. I think it is gnome-power-manager [14:29] the problem mi be that acpi is not for every computer , the gnome-thingy might be more suited :p [14:32] keesj: thanks for the help..i thin the acpi thing will work :-) [14:36] yo [17:07] o/ is there a manpage or other documentation for writing jobs in event.d? I've found some examples and a getting started guide, but no reference [17:10] Frymaster-UK: not that i am aware off. download the example jobs or replaceÃment scripts [17:10] yeah :( was hoping for sommat a bit more structured [17:11] if you find a real reference if would love o see it [17:11] i tried finding the parsing code shortly but did not find it fast enough