[01:16] <SegFaultAX> I have an upstart script that seems to hang whenever I start or stop it. I've looked at numerous other examples and they are literally doing /exactly/ the same thing as me.
[01:17] <SegFaultAX> It's basically `exec /opt/graphite/bin/carbon-cache.py --pidfile /var/run/graphite-server.pid start` + expect daemon.
[01:17] <SegFaultAX> If the service is already stopped/waiting, it will always start cleanly the first time.
[01:17] <SegFaultAX> If I try to stop the service though, it just hangs.
[01:17] <SegFaultAX> And then trying to start/restart/stop the server hangs no matter what.
[09:20] <afournier> did someone develop an upstart job to do sendsig job ?
[09:20] <afournier> i am thinking about porting sendsig to a task as my system is sysvinit-free
[09:22] <afournier> https://bugs.launchpad.net/upstart/+bug/750113
[09:22] <afournier> ok
[09:50] <xnox> SegFaultAX: after you start it does the pid from "ps" output match the pid from $ status jobname ?
[14:18] <xnox> since the upstart script overrides STARTUP a few things are broken, e.g. the ssh-agent & consolekit ?!
[14:18] <xnox> (yet we don't want dbus-launch either)
[14:19] <xnox> stgraber: seems like we need to leave a marker if we are running under upstart.
[14:21] <stgraber> xnox: yeah, I'll need to split the Xsession stuff again. Run a 00 that checks whether we need upstart, then override STARTUP at the end
[14:22] <stgraber> that way we can check for upstart in any Xsession script and do the "right" thing (which will mostly be, nothing and let upstart start the software directly)
[14:23] <xnox> stgraber: ok. in the mean time it means I should write gpg & ssh agent jobs, cause I'm sick of typing my password in.
[14:24] <stgraber> hehe, yeah ;)
[19:31] <xSmurf> hey all, I'm trying to setup a user script to launch some X program... I use env DISPLAY=:0 in the scrip to set the display but my program can never connect to it while running it from a shell works fine
[22:08] <ajp> I'm trying to get my upstart script (http://pastebin.com/xjACPjk4) to work, it launches this script (http://pastebin.com/zUjJ9G8c) but when I reboot the server (12.04 headless) the script does not work. I had it working a few weeks ago. 
[22:13] <ajp> anyone here?
[22:19] <stgraber> ajp: the start/stop conditions are completely wrong
[22:19] <stgraber> ajp: there's no such thing as a "network" job, so "started network" will never be emitted
[22:20] <stgraber> ajp: "shutdown" only happens when init gets SIGPWR, so will only work in containers and for machines shut down by UPSses
[22:20] <stgraber> you most likely want
[22:20] <stgraber> "start on static-network-up"
[22:21] <stgraber> "stop on starting rc RUNLEVEL=[016]"
[22:21] <stgraber> that's also all assuming that /home isn't on a separate partition, otherwise you'll need to add something for that to the start condition
[22:29] <ajp> I changed it to start on filesystem
[22:30] <ajp> and ran initctl reload-configuration and it worked on reboot