/srv/irclogs.ubuntu.com/2013/02/18/#upstart.txt

SegFaultAXI 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:16
SegFaultAXIt's basically `exec /opt/graphite/bin/carbon-cache.py --pidfile /var/run/graphite-server.pid start` + expect daemon.01:17
SegFaultAXIf the service is already stopped/waiting, it will always start cleanly the first time.01:17
SegFaultAXIf I try to stop the service though, it just hangs.01:17
SegFaultAXAnd then trying to start/restart/stop the server hangs no matter what.01:17
afournierdid someone develop an upstart job to do sendsig job ?09:20
afournieri am thinking about porting sendsig to a task as my system is sysvinit-free09:20
afournierhttps://bugs.launchpad.net/upstart/+bug/75011309:22
afournierok09:22
xnoxSegFaultAX: after you start it does the pid from "ps" output match the pid from $ status jobname ?09:50
xnoxsince 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:18
xnoxstgraber: seems like we need to leave a marker if we are running under upstart.14:19
stgraberxnox: yeah, I'll need to split the Xsession stuff again. Run a 00 that checks whether we need upstart, then override STARTUP at the end14:21
stgraberthat 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:22
xnoxstgraber: ok. in the mean time it means I should write gpg & ssh agent jobs, cause I'm sick of typing my password in.14:23
stgraberhehe, yeah ;)14:24
xSmurfhey 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 fine19:31
ajpI'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:08
ajpanyone here?22:13
stgraberajp: the start/stop conditions are completely wrong22:19
stgraberajp: there's no such thing as a "network" job, so "started network" will never be emitted22:19
stgraberajp: "shutdown" only happens when init gets SIGPWR, so will only work in containers and for machines shut down by UPSses22:20
stgraberyou most likely want22:20
stgraber"start on static-network-up"22:20
stgraber"stop on starting rc RUNLEVEL=[016]"22:21
stgraberthat's also all assuming that /home isn't on a separate partition, otherwise you'll need to add something for that to the start condition22:21
ajpI changed it to start on filesystem22:29
ajpand ran initctl reload-configuration and it worked on reboot22:30

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!