/srv/irclogs.ubuntu.com/2011/09/15/#upstart.txt

=== jY- is now known as jY
codebeakerhi, I'm searching (fruitlessly) in the docs for some info about any provision upstart makes for restarting processes without sending them a TERM and then booting them again, many bits of software (I'm talking Unicorn and Resque) here can be gracefully restarted using signals…15:32
jhuntcodebeaker: "man 5 init" has lots of information on what I think you're asking for.15:44
codebeakerah, cool - thanks15:44
jhuntcodebeaker: if you're referring to maybe sending SIGHUP to a process, "man initctl" and search for SIGHUP.15:44
codebeakerthanks, it's not solely about SIGHUP, example "Resque" (background workers for web apps) expects USR1 for graceful restarts15:45
codebeakerbut thank you in advance for the guidance15:45
jhuntnp. in init(5), also see the section on "kill signal".15:46
* codebeaker offers a bow15:46
codebeakercheers15:46
jhuntany time15:46
JanCcodebeaker: the codebook also has lots of good info16:11
codebeakerthanks JanC 16:12
JanCteh cookbook I mean  ;)16:12
JanChttp://upstart.ubuntu.com/cookbook/16:12
codebeakercookbook > wiki16:24
codebeakerI hadn't realized the wiki was so badly outdated until I happened to click the wiki homepage16:25
codebeakeralso, I recognized there's no obvious stanza for running a job as a specific user, is it the script author's responsibility to `su` and run? (Writing a wrapper for Unicorn, which is a forking server supporting specifying which user to run as, but opens it's log files as root before forking, and that's making a problem)16:38
jhuntyes. we're planning to add setuid and setgid stanzas as the code is already in upstart for user jobs.16:44
jhuntsounds like Unicorn needs to be fixed.16:45
codebeakerok, jhunt yeah, looks like, after the first request it hits (failed, or otherwise) then it sets the log permissions correctly, (and owner)17:00
codebeakerbut it's kinda lame17:00
codebeakerthanks again jhunt - I really appreciate your time17:02
SpamapSjhunt: maybe its time we took the wiki down, or at least added a massive disclaimer that its there for posterity only?17:10

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