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:16 |
---|---|---|
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. | 01:17 |
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:20 |
afournier | https://bugs.launchpad.net/upstart/+bug/750113 | 09:22 |
afournier | ok | 09:22 |
xnox | SegFaultAX: after you start it does the pid from "ps" output match the pid from $ status jobname ? | 09:50 |
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:18 |
xnox | stgraber: seems like we need to leave a marker if we are running under upstart. | 14:19 |
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:21 |
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:22 |
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:23 |
stgraber | hehe, yeah ;) | 14:24 |
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 | 19:31 |
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:08 |
ajp | anyone here? | 22:13 |
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:19 |
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:20 |
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:21 |
ajp | I changed it to start on filesystem | 22:29 |
ajp | and ran initctl reload-configuration and it worked on reboot | 22:30 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!