/srv/irclogs.ubuntu.com/2010/09/08/#upstart.txt

crazy2beIs there some way that i can get upstart to run a task with a certain username/userid? Or is there another tool that is better suited to that task?02:03
crazy2beMy server is written in golang, and i want to sandbox it somewhat in case there are vulnerabilities in my code (or the runtime!)02:04
ashbcrazy2be: sudo/su02:04
ashbexec sudo -u me bash -c "command goes here" has always been how i've done it02:04
crazy2bewhat happens when you run those as root? Never done that... I'll give it a try02:04
crazy2bebtw, thanks for this great utility!02:05
crazy2beubuntu is working great for my server02:07
crazy2beeven if it's the desktop edition :P server edition wouldn't work with my hardware02:07
=== robins is now known as robinsmidsrod
ashbhmmmm should upstart not have a dep on dbus?23:10
ashbstatus: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory23:10
ionRun the command as root23:12
ionThe daemon is optional. It’s only needed for non-root access.23:13
ashbah23:13
ashbah yes.23:13
ashbwhat should I do if i want to send a USR2 signal to a job23:13
ashbuse a clasic init script that wraps initctl to do everything else?23:13
ionSomething like killed=false; eval "$(LC_ALL=C initctl status tty6 | sed -nre 's/.* process ([0-9]+).*/kill -USR2 \1; killed=true/p')"23:15
ashbwhere? (is there a better place than an init.d script?23:16
ionWhat’s the USR2 for? If reloading config or something like that, alas, currently the signal for reload is not configurable.23:17
ashbkinda yeah - its to make the unicorn (ruby webserver) spawn a new master and kill the old one seamlessly23:18
ionI take it Unicorn can’t be configured to do that on SIGHUP?23:18
ashbsighup would work if i didn't want seamless23:19
ashbthat makes it kill all its children then start again, but doesn't workj when you load app before forking the workers23:19
ionAnd that’s not configurable?23:19
ashbnope23:19
ionThere might be no pretty solution until the signal sent by reload becomes configurable.23:21
ashbk23:37
=== ion_ is now known as ion

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