Re: upstart and dbus

2010-05-13 Thread b0unc3
On Thu, May 13, 2010 at 11:33 AM, Graham Cobb g+...@cobb.uk.netg%2b...@cobb.uk.net wrote: On Thursday 13 May 2010 00:27:21 Faheem Pervez wrote: On 5/13/10, Graham Cobb g+...@cobb.uk.net g%2b...@cobb.uk.net wrote: Faheem, what were you using as the start condition for your upstart

Re: upstart and dbus

2010-05-13 Thread Graham Cobb
On Thursday 13 May 2010 11:40:24 b0unc3 wrote: I found that if I use : start on started hildon-desktop as starting condition, I don't need to put the pre-start script You are probably right. If hildon-desktop has started, users could be running apps so everything must be set up correctly!

upstart and dbus

2010-05-12 Thread b0unc3
Hello, I've wrote a little daemon that basically listen on DBus for some events and now I want to automatically start it through upstart. But, upstart doesn't like my app :( I discovered that if I use a DBUS_BUS_SYSTEM for the DBusConnection, everything works fine. Instead, if I use a

Re: upstart and dbus

2010-05-12 Thread Ram Kurvakat
- Original Message - From: b0unc3 Sent: 05/12/10 08:52 PM To: maemo-developers Subject: upstart and dbus Hello, I've wrote a little daemon that basically listen on DBus for some events and now I want to automatically start it through upstart. But, upstart doesn't like my app :( I discovered

Re: upstart and dbus

2010-05-12 Thread Graham Cobb
On Wednesday 12 May 2010 21:50:31 Ram Kurvakat wrote: I cant provide a full solution now but to use the session bus you will need the session bus address I think which changes every restart. Are you doing that in your upstart script already ? ( setting the dbus session address something like

Re: upstart and dbus

2010-05-12 Thread Faheem Pervez
If you do use run-standalone.sh in an Upstart script, please be aware of https://bugs.maemo.org/show_bug.cgi?id=8148. Lucas Maneos' awesomeness helped me to fix my issue. On 5/12/10, Graham Cobb g+...@cobb.uk.net wrote: On Wednesday 12 May 2010 21:50:31 Ram Kurvakat wrote: I cant provide a full

Re: upstart and dbus

2010-05-12 Thread b0unc3
Using run-standalone.sh everything works as expected. Thanks to all! On Thu, May 13, 2010 at 12:07 AM, Faheem Pervez tripp...@gmail.com wrote: If you do use run-standalone.sh in an Upstart script, please be aware of https://bugs.maemo.org/show_bug.cgi?id=8148. Lucas Maneos' awesomeness helped

Re: upstart and dbus

2010-05-12 Thread Graham Cobb
On Wednesday 12 May 2010 23:07:47 Faheem Pervez wrote: If you do use run-standalone.sh in an Upstart script, please be aware of https://bugs.maemo.org/show_bug.cgi?id=8148. Lucas Maneos' awesomeness helped me to fix my issue. Interesting. For others (who don't want to read through 37 comments

Re: upstart and dbus

2010-05-12 Thread Faheem Pervez
On 5/13/10, Graham Cobb g+...@cobb.uk.net wrote: Faheem, what were you using as the start condition for your upstart script? I would have assumed that if it were anything after start on started dbus then the waitdbus would be unnecessary. In particular, I normally use start on