=== jY- is now known as jY | ||
codebeaker | hi, 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 |
---|---|---|
jhunt | codebeaker: "man 5 init" has lots of information on what I think you're asking for. | 15:44 |
codebeaker | ah, cool - thanks | 15:44 |
jhunt | codebeaker: if you're referring to maybe sending SIGHUP to a process, "man initctl" and search for SIGHUP. | 15:44 |
codebeaker | thanks, it's not solely about SIGHUP, example "Resque" (background workers for web apps) expects USR1 for graceful restarts | 15:45 |
codebeaker | but thank you in advance for the guidance | 15:45 |
jhunt | np. in init(5), also see the section on "kill signal". | 15:46 |
* codebeaker offers a bow | 15:46 | |
codebeaker | cheers | 15:46 |
jhunt | any time | 15:46 |
JanC | codebeaker: the codebook also has lots of good info | 16:11 |
codebeaker | thanks JanC | 16:12 |
JanC | teh cookbook I mean ;) | 16:12 |
JanC | http://upstart.ubuntu.com/cookbook/ | 16:12 |
codebeaker | cookbook > wiki | 16:24 |
codebeaker | I hadn't realized the wiki was so badly outdated until I happened to click the wiki homepage | 16:25 |
codebeaker | also, 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 |
jhunt | yes. we're planning to add setuid and setgid stanzas as the code is already in upstart for user jobs. | 16:44 |
jhunt | sounds like Unicorn needs to be fixed. | 16:45 |
codebeaker | ok, jhunt yeah, looks like, after the first request it hits (failed, or otherwise) then it sets the log permissions correctly, (and owner) | 17:00 |
codebeaker | but it's kinda lame | 17:00 |
codebeaker | thanks again jhunt - I really appreciate your time | 17:02 |
SpamapS | jhunt: 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!