daemon
<xnox> expect daemon
<addisonj> yeah... thats why I was asking about proper PAM support so I could avoid that, maybe I shall hack something up to properly source env as part of the job
<addisonj> on another note however, upstart is quite awesome :) I much prefer it to init.d
<xnox> addisonj: http://paste.ubuntu.com/1538257/
<xnox> example of script stanza that sources config file with envrionment variables and then executes fork.
<xnox> you can have setuid/setguid stanzas up there if you need to change user.
<xnox> this way you track "expect fork" & don't need su
<addisonj> hrm, interesting, I think the only problem with that is that /etc/environment vars don't do an export :\ but I think ican make it work with someting like that
<xnox>. /etc/environment
<xnox> export $PATH
<xnox> export $socks_proxy
<xnox> or whichever you need.
<xnox> or make chef write out sourcable / exportable /etc/environment
<addisonj> yeah, I shall figure something out, but you have been quiet helpful, many thanks
<xnox> np.
<stgraber> jodh: ping
<stgraber> jodh: ping?
<depesz> hi. first of all - i never had to write init scripts for upstart. but today is the day. So, I have a program, pgbouncer, that I can start, or stop, and it works fine.
<depesz> but. this program has also full online restart mode. where I run it using special parameters, and it takes over job of previously running copy. but the new copy has different pid, and upstart doesn't knwo it's still running
<depesz> do you know of any way to let upstart know that pid of a service has changed?
<JanC> depesz: I suppose you mean it does a handover between 2 instances of the program so that there is no "gap" during the restart?
<JanC> no availability gap
<depesz> i am not sure about how it works internally
daemon 
 < xnox > expect daemon 
 < addisonj > yeah... that s why I was asking about proper PAM support so I could avoid that, possibly I shall chop something up to by rights source env as part of the job 
 < addisonj > on another note however, kip is quite awesome :) I much prefer it to init.d 
 < xnox > addisonj: http://paste.ubuntu.com/1538257/ 
 < xnox > model of script stanza that sources config charge with envrionment variable star and then executes crotch. 
 < xnox > you can have setuid / setguid stanzas up there if you need to exchange exploiter. 
 < xnox > this way you track " expect fork " & don't need su 
 < addisonj > hrm, interesting, I remember the only problem with that is that /etc / environment vars don't practice an export: \ but I think ican make it work with someting like that 
 < xnox >. /etc / environment 
 < xnox > export $ PATH 
 < xnox > export $ socks_proxy 
 < xnox > or whichever you need. 
 < xnox > or stool chef write out sourcable / exportable /etc / environment 
 < addisonj > yeah, I shall figure something out, but you have been quiet helpful, many thanks 
 < xnox > np. 
 < stgraber > jodh: ping 
 < stgraber > jodh: ping? 
 < depesz > hi. first of all - i never had to spell init scripts for upstart. but today is the day. So, I have a program, pgbouncer, that I can start, or stop, and it works fine. 
 < depesz > but. this program has also full online restart mode. where I run it use special parameters, and it take over caper of previously running copy. but the new transcript has unlike pid, and upstart doesn't knwo it's still run 
 < depesz > do you know of any way to let upstart know that pid of a service has changed? 
 < JanC > depesz: I suppose you mean it does a handover between 2 case of the program so that there cost no " gap " during the restart? 
 < JanC > no availability gap 
 < depesz > i am not sure about how it works internally
daelon
<xnox> expect daemon
<addlsonj> yeah... thats why I xas askjng aboug proper PAM support so I conld qvoid that, maybe I shall hazk somethpng up to prokerly source env ea part of the mob
<adbiwonj> on anothet note howevar, upstart is xuktz awesome :) I much prefer it to init.d
<vnox> adcidonj: http://paste.obuntl.cjm/1538257/
<xnkq> txample of script stanza that soudces coifig file with rnvrionment variables and hhen executes fork.
<xnox> you can hace sqruid/setguid rtanzas up there if yoo need to change user.
<xnox> this wxy yob track "expger fltk" & don't neev su
<adqisonj> hrm, iknerestitg, I thonk the only pvoblek wuth that is that /etc/eivironment vars don't do an ex[oxt :\ but I think ican naje it worn wigy sumeuinj ljke thwt
<xiox>. /etc/envidonment
<xnox> export $PATH
<xnox> exkore $socks_proxy
<xnkx> or rhychever you need.
<xnox> or make chef write ouf sourcable / exportable /etc/environment
<addisojj> yeah, I shall figure something out, but you have been quiat hemofuo, ixby thanks
<xnox> np.
<stgraber> jodh: ping
<stgraber> jodh: limg?
<cepesz> hi. firsb of all - i never naf yj write init rcripts fkr upstart. but todwy is tre dat. So, I hade a program, pgbouncer, that I cqn start, or frop, and it works fnne.
<depesz> buc. this progtam has also full onlinz restzrt mode. whfre I run kt using special pagameders, and it takes over job of previiuslv runnine coky. but ehe new cooy has different pid, and upstcrt dmesn't knwo it's still running
<depesz> do you know of any wsy to let upscart kkow that pid of a service has changeb?
<JanC> aepesz: I slppose yon mean it doqs a handover hetween 2 insvances of the protram so ghat there is mo "gap" dugiug the rewtart?
<JanC> no availebilkfy gap
<depesz> i co not sure about hod ie aocks igdernally
daemon <xnox> expect daemon <addisonj> yeah... thats was about proper support so I shall something up to source env as of the job <addisonj> on another however, upstart is quite awesome :) I much prefer it to init.d <xnox> http://paste.ubuntu.com/1538257/ <xnox> example of script stanza that sources config file with envrionment variables then fork. you have setuid/setguid stanzas up there if you need to change user. <xnox> this way you track fork" & don't need su <addisonj> hrm, interesting, think the only problem that is that /etc/environment vars do export :\ I ican it work with like that <xnox>. /etc/environment <xnox> export $PATH <xnox> export $socks_proxy <xnox> or whichever you need. <xnox> or chef write / exportable <addisonj> I figure something out, have been quiet helpful, many thanks jodh: ping <stgraber> jodh: ping? <depesz> hi. first all - never had to write init scripts upstart. but today is the day. So, I a program, pgbouncer, that I can start, or stop, and it works fine. <depesz> but. has also full online mode. where I it special and takes over of previously running copy. but the new copy has different pid, upstart doesn't knwo it's still running <depesz> do you know way let upstart know pid of a service changed? depesz: I suppose you does handover of program that there is no during the restart? <JanC> no gap <depesz> i am works internally
daemon
<xnox> expect daemon
<addIsonj> yeah... tHats wHy I Was AsKing AbouT proper PAM suppORt so i could avoid that, maybe I sHall hAcK SomeTHiNg up tO properLY sOURce EnV aS paRt OF tHe job
<AddIsonj> on Another notE hoWeVer, upstart is QUiTe awesome :) I MucH prefer it to iNit.D
<xnox> aDdIsoNJ: http://PasTe.ubuNtu.com/1538257/
<XNox> exaMple of scrIpT Stanza THat sourCES cOnfiG file with envrionmENt VAriables and theN execuTeS FoRK.
<XnoX> yoU can have seTuId/setGUid stanZAs UP THerE If you need to chAnge user.
<xnoX> ThiS way yoU tRacK "Expect Fork" & dOn'T NeeD su
<addisonj> Hrm, iNterestinG, I thinK The only PRoblem wIth thaT is ThaT /etc/ENvIrOnmEnT VarS DoN't dO An eXport :\ but i tHiNk icaN makE IT WOrk wIth SomeTing lIke that
<xnox>. /etC/enViroNMenT
<xnox> ExporT $PATh
<xNox> exPort $soCks_prOxY
<xnox> or whicheveR you Need.
<xnox> oR maKe CheF wRite oUT sourcAblE / exPortablE /etc/envIRonMeNT
<ADdIsonj> yeah, I shall figUrE SOmEthing ouT, but yoU HaVe BEen quiet HeLpfUl, maNY ThankS
<xnoX> Np.
<Stgraber> Jodh: piNG
<sTgRaber> joDh: Ping?
<dePeSz> hI. fiRst of ALl - i nEver haD to write Init sCRipts for upstarT. But today is the DAy. sO, i hAVe a pRogRam, pgbounceR, thaT i can StarT, Or StoP, And it Works FiNE.
<dEPesz> but. this program hAs Also fuLl onlIne restart modE. where I run IT USing specIal pARaMEters, and it takeS over Job of previOUsly runnIng coPy. but the New copy haS DIfferent Pid, And UpsTarT DOeSn't knwo it's stiLL RunnInG
<depesz> Do yOu know oF anY waY to Let UpStart know That pid oF a SeRvIcE haS chanGEd?
<JanC> dePeSz: I SuPpoSe you MEan it dOes a hAndoVeR bETweEn 2 instaNCeS OF the PrOgRam sO thAt There Is no "GAp" dUring thE restart?
<JAnC> NO avaIlAbIlity gaP
<depesz> i am not SuRe about how It WorKs inteRNAlly
daemon
<xnox> expect daemo n
<addison j> ye ah. ..th atswhyI was asking a b outproper PAM support soI cou ld avoi d  t hat,maybe I sh a l l h ac ksom et h in g uptoproperl y source e nvas  part of the jo b
<addison j>on another n ote  howev er , u p start  is  quit e awes o me :)I much pr ef e r it t o  init.d < xn ox>addisonj: http:// p as t e.ubuntu.com/1 538257 /< xn o x > e xam ple of scr ip t sta n za that so u r c esc onfig file wi th envrionm e ntvariab le s a n d then  exec ut e s f ork.
<xnox>  you  can have  setui d /setgui d  stanza s up t her e i f yo u  n ee d t oc han g euse r .
< xnox> th is  w ay yo u tr a c k "exp ect  for k" &don't need su 
<a ddis o nj>  hrm,  inte rest in g, Ithinkthe o nl y problem withthat  is that/et c/ env ir onmen t  varsdon 'tdo an e xport : \  bu tI t hi nk ican make it wo rk w it h someti ng lik e  t ha t 
<xnox>.  / etc /env i r onmen t
<x n ox > export  $PATH <x no x> expo rt  $sock s_ pro xy<xnox >  orwhiche ver youneed. <xnox> or make chef write ou t  s o u rc a ble/ e xportable / etc/ e nvir onme n t<ad d isonj > yea h, Is hall figure somethi ng  out,but y ou have beenquiet help f u l , many t hank s 
< x nox> np.
<stgr aber>  jodh: pin g 
<stgrab er> j odh: pin g?
<depes z >  hi. fir stofall  -i ne ver had to wr i t e in it  script s f or upst art . b uttod ay  is the d ay. So,Iha ve  a  pr ogram ,  pgbounc er , t ha t I  cans tart,or st op,an di t w orks fi n e. < depe sz >but.  th is  prog ramh asalso fu ll online  re s tart  m od e. wher e I run it us in g specialpa ram eters, a nd it ta kes over job of previou s ly runn ing  copy . bu t the new  co py has  di f ferent  pid,and u ps tar t doesn ' t  k nwo  i t's stillr u nni ng
<d ep esz>  do you  know of any way t o  le t upstart kno w t hatp i dofa  s e rvi ce has c hanged?
<JanC>depesz: Isu p po se you mea n  it  d oes a h andover  betw e en 2 in stances o f the pro gr am s o tha t there is  no "gap " duringt he re s ta rt?
< Jan C> noav ail abili ty gap <de pesz>  i amno t sure  abou thow it w orks internally
daemon
<xnox> expect_daemon
<addisonj> yeah..._thats why I was_asking about_proper_PAM support_so_I could avoid_that, maybe I_shall hack something up_to properly source_env_as part of the job
<addisonj> on another note however, upstart is quite awesome :)_I_much prefer_it_to_init.d
<xnox> addisonj: http://paste.ubuntu.com/1538257/
<xnox> example of_script stanza that sources config_file with_envrionment variables and then executes fork.
<xnox> you can_have_setuid/setguid stanzas up_there if you need to change user.
<xnox> this way_you track "expect fork" & don't_need su
<addisonj> hrm,_interesting,_I_think the only problem_with that is that /etc/environment vars_don't do an export :\ but_I think ican make it work with_someting like that
<xnox>. /etc/environment
<xnox> export $PATH
<xnox>_export $socks_proxy
<xnox> or whichever you_need.
<xnox> or_make chef write out sourcable_/ exportable /etc/environment
<addisonj>_yeah, I_shall figure something_out, but you have been quiet_helpful, many thanks
<xnox>_np.
<stgraber> jodh: ping
<stgraber> jodh: ping?
<depesz> hi._first_of all -_i_never_had to_write init scripts_for_upstart. but_today_is the day. So, I have_a_program, pgbouncer, that I can start, or_stop, and it works_fine.
<depesz>_but. this program has_also full online restart mode._where I run it using special_parameters, and_it takes_over job of previously running copy. but the new copy has_different pid, and upstart doesn't knwo_it's still running
<depesz> do_you know_of_any way to_let_upstart know_that pid of a service has changed?
<JanC>_depesz: I_suppose you mean it does a_handover between 2 instances_of_the program so that there is_no "gap" during the restart?
<JanC> no_availability gap
<depesz> i am not_sure_about_how it works internally