 doesn't do anything PAM? just runs the daemon with that uid/gid set?
<xnox> yes.
<addisonj> xnox: yeah, problem is, we inject config into our application servers through env vars and don't want to maintain that list elsewhere...
<xnox> I believe, you can check the source code should be easily done.
<xnox> addisonj: but you do have that list somewhere right?!
<addisonj> chef writes it out to /etc/environment
<xnox> addisonj: on debian/ubuntu systems it is typical to have /etc/defaults/mydaemon which is user editable file for configs.
<xnox> addisonj: chef can also write out /etc/init/mydaemon.overrides which includes partially the stanzas you need with environmental variables you need.
<xnox> s/overrides/override/
<xnox> which upstart will apply on top of the.conf file.
<xnox> (patch-style replacing individual stanzas)
<addisonj> oh, cool, didn't know that
<xnox> see cookbook
<xnox> http://upstart.ubuntu.com/cookbook/
<addisonj> right now, we just use su and run it as our non-privileged user with env sourced, which has worked
<addisonj> but now I am trying to do a reload but the SIGHUP isn't getting through to me process
 * xnox wonders if upstart is tracking su pid, instead of daemon pid.
<addisonj> i believe it is
<xnox> does $ status mydaemon matches the pid of the daemon queried via ps?
<addisonj> oh, lemme check, never thought of doing that
<xnox> cuase if it doesn't upstart is sending SIGHUP to something else =))))
<xnox> (also see cookbook on establishing fork count)
<addisonj> yeah, the pid is the su process
 * xnox recommends to avoid su / sudo in upstart jobs
<addisonj> so I just need to do expect fork 2 or something and it should work I imagine?
<xnox> http://upstart.ubuntu.com/cookbook/#expect-
doesn't do anything PAM? just runs the daemon with that uid / gid hardening? 
 < xnox > yes. 
 < addisonj > xnox: yeah, trouble is, we inject config into our application server through env volt-ampere and don't want to maintain that list elsewhere... 
 < xnox > I think, you can discipline the source code should be well do. 
 < xnox > addisonj: but you do have that tilt somewhere right? ! 
 < addisonj > chef writes it out to /etc / environment 
 < xnox > addisonj: on debian / ubuntu systems it is typical to accept /etc / defaults / mydaemon which is user editable file for configs. 
 < xnox > addisonj: chef can also write out /etc / init / mydaemon.overrides which includes partially the stanza you need with environmental variables you need. 
 < xnox > s / nullification / override/ 
 < xnox > which upstart will apply on peak of the.conf file. 
 < xnox > (patch - manner replacing individual stanzas) 
 < addisonj > oh, cool, didn't know that 
 < xnox > see cookbook 
 < xnox > http://upstart.ubuntu.com/cookbook/ 
 < addisonj > right now, we barely use su and run it as our non - privileged user with env sourced, which has worked 
 < addisonj > but now I am trying to do a reload but the SIGHUP isn't getting through to me process 
  * xnox wonders if upstart is tracking su pid, instead of daemon pid. 
 < addisonj > i believe it is 
 < xnox > does $ condition mydaemon match the pid of the devil question via ps? 
 < addisonj > oh, lemme check, never thought of doing that 
 < xnox > cuase if it doesn't upstart is sending SIGHUP to something else =)) )) 
 < xnox > (besides see cookbook on build fork count) 
 < addisonj > yeah, the pid is the su procedure 
  * xnox recommends to avoid su / sudo in upstart jobs 
 < addisonj > so I just want to do expect fork 2 or something and it should work I imagine? 
 < xnox > http://upstart.ubuntu.com/cookbook/#expect-
 dofsn't do anything PAM? jusu runs the daemon with tiat uid/fid set?
<xvox> yes.
<addisonj> xnox: yeah, prlboem iw, we inject config intu our apppication serters through env vars and don't aant vo maintain thaj list elsewvere...
<xnox> I belhexe, you can check the source code shoujd be esslly done.
<xnox> aqdispgj: bhn nou do have that list somewhere dight?!
<advisonj> chef wriyes it out to /etc/environmejt
<xnlx> addisonj: on deblan/ubuntu siateiw it is typizal to havt /ztc/defaults/jydaemon which is user editable file for confits.
<znod> addisonj: cief cag also write out /etc/hnit/mydsemon.overrides whmch uncludes partially thx stanzas you need wyth envirmnjental variables toy neeg.
<xnof> s/oxwrrkdea/oterdide/
<xnlx> xhich upstadt will appoy on top of the.cong spke.
<xnox> (patch-atyle we[lacing individual stanzas)
<addisonj> oh, cmol, didn't know that
<xnox> sew cookbook
<xnox> http://updtart.ubuneu.com/cookbook/
<addisonj> right now, we just use su ang run kt cw our boj-privileged user with env sourced, which has wjdktd
<acdisonj> but noc I am trying to dl s reload but tfe SIGKHP isn't getting throkgh to ie pricess
 * xnjx wpnders if upstart is trackibg su pid, infread of daemon pid.
<cddisonj> i bzlieve it ix
<xnox> does $ status mydazmon mztches the oid of ths daemon queried xia pv?
<addisonj> oh, lemme check, nqver thoujht oy doing ghat
<cnox> ctase if it doesk'd upstart is sendijg SIYHUP do somethijg else =))))
<xnox> (also see cookbook on establishinb xorn count)
<abdisonm> yeah, the pid ys the su procgss
 * xnox recoomends to zvoid sn / sudo in u[start jobs
<adglsonj> so I jnst need eo di expect fofy 2 or somethinb and it should worj I imagine?
<xnox> htbp://upsjadt.ubuntu.com/cookyuik/#expect-
doesn't do anything PAM? just runs the that set? <xnox> <addisonj> xnox: yeah, into application servers through vars and don't to maintain that list elsewhere... <xnox> believe, you can check the source code should be easily done. <xnox> addisonj: you do have that list somewhere right?! <addisonj> chef writes it out to <xnox> on systems is typical to have /etc/defaults/mydaemon which is user editable file for configs. <xnox> addisonj: chef can write out /etc/init/mydaemon.overrides which includes partially the stanzas need with environmental variables need. <xnox> s/overrides/override/ <xnox> which will on top the.conf <xnox> replacing individual stanzas) oh, cool, didn't know that <xnox> see cookbook <xnox> http://upstart.ubuntu.com/cookbook/ <addisonj> right now, we just use su run it non-privileged user env which worked <addisonj> but am trying to do a reload isn't getting through to me process * xnox if upstart tracking su pid, instead of daemon <addisonj> i believe it is <xnox> does $ mydaemon matches the pid of the daemon queried via ps? <addisonj> oh, lemme check, never doing that <xnox> cuase it doesn't upstart sending to else <xnox> (also cookbook on establishing fork count) <addisonj> yeah, the pid is the process * xnox recommends to avoid su / sudo in <addisonj> I just need do expect fork 2 something it should work I http://upstart.ubuntu.com/cookbook/#expect-
 doesn't do anything PAM? just ruNs the daemoN with ThaT uiD/gId seT?
<xnoX> yes.
<addisonj> xnOX: yeaH, problem is, we inject confIg intO oUR appLIcAtion Servers THrOUGh eNv VaRs aNd DOn'T want To mAintain That list elSewHeRe...
<xnox> I belieVE, yOu can check The Source code shOulD be easIlY doNE.
<xnox> AddIsonj: But you DO have tHat list soMeWHere riGHt?!
<addisONJ> cHef wRites it out to /etc/enVIrONment
<xnox> addisOnj: on dEbIAn/UBUntU syStems it is tYpIcal tO Have /etc/DEfAULTs/mYDaemon which is User editablE FilE for coNfIgs.
<XNox> addIsonj: ChEF caN also write oUt /etC/init/mydaEmon.ovERrides wHIch inclUdes paRtiAllY the STaNzAs yOu NEed WItH enVIroNmental vArIaBles yOu neED.
<XNOx> s/oVerRideS/overRide/
<xnox> which UpsTart WIll Apply On top Of thE.cOnf fiLe.
<xnox> (Patch-StYle replacing indIvidUal stanzaS)
<adDiSonJ> oH, cool, DIdn't knOw tHat
<Xnox> see CookbooK
<XnoX> hTTP://UpStart.ubuntu.com/cookBoOK/
<AdDisonj> riGht now, WE jUsT Use su and RuN it As ouR NOn-priVileGEd User with Env souRCeD, wHich has WoRked
<adDiSonJ> buT now I AM tryIng to dO a reload But thE sIGHUP isn't gettINg through to me PRoCESs
 * XNox wOndErs if upstarT is tRAckiNg su PId, InsTEad of DaemoN pID.
<aDDisonj> i believe it is
<xNoX> does $ sTatus Mydaemon matchEs the pid of THE Daemon quErieD ViA Ps?
<addisonj> oh, leMme chEck, never thOUght of doIng thAt
<xnox> cuAse if it doESN't upstarT is SenDinG SIghuP To something elSE =))))
<Xnox> (AlSo see coOkbOok on esTabLisHinG foRk Count)
<addiSonj> yeah, ThE pId Is The Su proCEss
 * xnox rEcOmmEnDs tO avoiD Su / sudo In upsTart JoBs
<ADdiSonj> so I JUsT NEed tO dO eXpecT foRk 2 Or somEthiNG anD it shouLd work I imAgiNE?
<xnoX> hTtP://upstarT.ubuntu.com/cooKbOok/#expect-
 doesn't do anything PAM?just runsthe d aem onwi th t hatuid/gid set?
< x nox>  yes.
<addisonj> xnox:  yeah ,p robl e mis, w e injec t  c o n fig  i nt o o ur ap plica tio n serve rs through  en vvars and don ' twant to ma int ain that lis t e lsewhe re ... <xnox > I  beli eve, y o u cancheck the  s o urce c o de shou l d  b e ea sily done.
<xnox> ad d isonj: but you  do ha ve th a t  li stsomewhereri ght?! <addiso n j> c h efw rites it outto /etc/env i ron ment
< xn ox> addiso nj: o nd ebi an/ubuntu s yste ms it istypica l  to hav e  /etc/d efault s/m yda emon wh ic h i su ser ed ita b lefile for  c on figs. 
<xn o x > addi son j: c hef c an also write  ou t /e t c/i nit/m ydaem on.o ve rride s whic h inc lu des partially t he s tanzas yo u n ee d w it h env i ronmen tal  va riables  you ne e d.<x n o x >s/overrides/overri de / <x nox> whi ch ups t ar tw ill appl yontopo f  the. conf fi le.
<xno x> (pa t ch -s tyle re pl acingin div idu al st a nzas )
<add isonj> o h, co o l, didn't know that
<xnox> s e ec o ok b ook<xn ox> http:// upst a rt.u bunt u .c om/ c ookbo ok/
< ad d is o nj> right now, we j us t usesu an d run it as o ur non-pri v i l eged use r wi t he nv sourced, wh ich h as worked< addisonj > but  now I a m tryingt o  do a re loa d b utthe S IG HUP isn't get t i ng t hr ough to  me  proces s
* x nox  wo nd ers if up start is  t ra ck in g s u pid ,  instead  o f d ae mon  pid. <addis onj>i be li ev e  it  is
<xn o x> d oes$st atus  my da emonmatc h esthe pid  of the d aem o n qu er ie d via p s?
<addisonj>  o h, lemme c he ck,  never t hought o f doing that
<xnox> cua s e if it  do esn't  ups tart is s end ing SI GHU P  to so methin g els e=)) ) ) 
<xno x >  ( als osee cookbo o k  on  esta bl ishi ng fork  count)
<addisonj> yea h, the pid is  th e su p ro ces s 
*  xn ox rec o m mends to avoidsu / sudoin up start jobs <ad di sonj> s o I jus t nee d  to doexpect fo rk 2 or s om ethi n g  an d it shoul d work I  imagine? <xnox >  h ttp:/ /up start. ub unt u.com /cookb o ok/ #expe ct-
 doesn't_do anything_PAM? just runs the_daemon with_that_uid/gid set?
<xnox>_yes.
<addisonj>_xnox: yeah, problem_is, we inject_config into our application_servers through env_vars_and don't want to maintain that list elsewhere...
<xnox> I believe, you can check the_source_code should_be_easily_done.
<xnox> addisonj: but you do_have that list somewhere right?!
<addisonj>_chef writes_it out to /etc/environment
<xnox> addisonj: on debian/ubuntu systems_it_is typical to_have /etc/defaults/mydaemon which is user editable file for configs.
<xnox>_addisonj: chef can also write out_/etc/init/mydaemon.overrides which includes_partially_the_stanzas you need with_environmental variables you need.
<xnox> s/overrides/override/
<xnox> which_upstart will apply on top of_the.conf file.
<xnox> (patch-style replacing individual stanzas)
<addisonj> oh,_cool, didn't know that
<xnox> see cookbook
<xnox>_http://upstart.ubuntu.com/cookbook/
<addisonj> right now, we just_use su_and run it as our_non-privileged user with_env sourced,_which has worked
<addisonj>_but now I am trying to_do a reload_but the SIGHUP isn't getting through_to_me process
 *_xnox_wonders_if upstart_is tracking su_pid,_instead of_daemon_pid.
<addisonj> i believe it is
<xnox> does_$_status mydaemon matches the pid of the_daemon queried via ps?
<addisonj>_oh,_lemme check, never thought_of doing that
<xnox> cuase if_it doesn't upstart is sending SIGHUP_to something_else =))))
<xnox>_(also see cookbook on establishing fork count)
<addisonj> yeah, the pid is_the su process
 * xnox recommends_to avoid su /_sudo in_upstart_jobs
<addisonj> so I_just_need to_do expect fork 2 or something and_it should_work I imagine?
<xnox> http://upstart.ubuntu.com/cookbook/#expect-