[01:16] 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] It's basically `exec /opt/graphite/bin/carbon-cache.py --pidfile /var/run/graphite-server.pid start` + expect daemon. [01:17] If the service is already stopped/waiting, it will always start cleanly the first time. [01:17] If I try to stop the service though, it just hangs. [01:17] And then trying to start/restart/stop the server hangs no matter what. [09:20] did someone develop an upstart job to do sendsig job ? [09:20] i am thinking about porting sendsig to a task as my system is sysvinit-free [09:22] https://bugs.launchpad.net/upstart/+bug/750113 [09:22] ok [09:50] SegFaultAX: after you start it does the pid from "ps" output match the pid from $ status jobname ? [14:18] since the upstart script overrides STARTUP a few things are broken, e.g. the ssh-agent & consolekit ?! [14:18] (yet we don't want dbus-launch either) [14:19] stgraber: seems like we need to leave a marker if we are running under upstart. [14:21] 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] 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] 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] hehe, yeah ;) [19:31] 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] 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] anyone here? [22:19] ajp: the start/stop conditions are completely wrong [22:19] ajp: there's no such thing as a "network" job, so "started network" will never be emitted [22:20] ajp: "shutdown" only happens when init gets SIGPWR, so will only work in containers and for machines shut down by UPSses [22:20] you most likely want [22:20] "start on static-network-up" [22:21] "stop on starting rc RUNLEVEL=[016]" [22:21] 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] I changed it to start on filesystem [22:30] and ran initctl reload-configuration and it worked on reboot