/srv/irclogs.ubuntu.com/2010/01/23/#ubuntu-devel.txt

slangasekmathiaz: for new stuff, definitely preferred to modify the job directly; for existing stuff, I've tried to respect the existing configs when converting00:26
mathiazslangasek: great thanks00:27
mathiazslangasek: I'm writting my UDW session about server packages00:27
mathiazslangasek: and plan a topic about upstart jobs00:27
slangasekah :)00:27
mathiazslangasek: do you have specific ideas about upstart features useful for daemons?00:27
mathiazslangasek: I already have: supervision00:28
mathiazslangasek: support for forking daemons00:28
mathiazslangasek: examples of running daemons in foreground00:28
slangasekI was intending to put together a talk about authoring upstart jobs for UDW, but I didn't see a call for sessions this time around (just an announcement of when it was that implied the slots were already filled)00:28
slangasekmathiaz: automatically cascading restarts?00:28
mathiazslangasek: oh nice00:29
mathiazslangasek: examples?00:29
slangasek(service portmap restart -> restarts portmap, gssd, statd)00:29
slangaseknot sure that's actually /needed/ for either of those services, but in practice it will happen :)00:30
mathiazslangasek: is this already available in lucid?00:30
slangasekyes00:30
slangasekand in karmic00:30
mathiazslangasek: do you have example of an upstart job that starts a process that forks00:30
mathiazslangasek: IIRC there is the fork keyword available00:30
mathiazslangasek: or expect fork - something like that00:30
slangasekmathiaz: many do... ssh, portmap, atd, et al00:31
ionUpstart’s fork-following code is quite fragile currently. The next-gen Upstart will have a proper implementation that should handle any situation well.00:31
slangasekreally?  that's not a caveat Keybnz has mentioned :)00:31
mathiazslangasek: any other ideas about Upstart feature relevant for managing daemons?00:32
ionHe has mentioned it repeatedly.00:32
slangasekmathiaz: built in support for oom handling?00:33
slangasekion: to you, apparently, but not anywhere that I've picked up on it...00:33
slangasekmathiaz: +nicing +limits00:33
mathiazslangasek: hmmm - any examples of this use?00:33
slangasekmathiaz: ssh in lucid; for the other two I don't have live examples, just init(5)00:34
ionIf the job’s main command consistently does a fork or a double fork and you tell Upstart about it with the expect stanza, things will work.00:34
slangasekion: oh, fragile in that you have to tell upstart what to look for, sure00:35
ionIf the main command is a shell script that runs stuff and then execs the main daemon *that forks*, that’s likely to break the current implementation.00:35
mathiazslangasek: great - thanks for the input!00:35
slangasekion: right, that was one of the points for my theoretical UDW talk, under the heading "how to write an upstart job that you have to reboot to fix" :)00:35
mathiazslangasek: I also noticed that there wasn't a reload command00:35
ionIf the shell script does a fork-and-exec for an external command, the code will shit itself. :-)00:35
mathiazslangasek: hm - sorry00:36
mathiazslangasek: a force-reload command00:36
ionThe proper implementation in Upstart 0.10 or whatever it’ll be called will handle that, too.00:36
mathiazslangasek: as mentionned in the Debian policy00:36
slangasekmathiaz: Debian policy describes the behavior of init scripts in /etc/init.d; the upstart-job shim implements force-reload00:37
slangasek(though I'm not sure the 'reload' command is the right backend for that, maybe we have a bug there)00:38
mathiazslangasek: is there a way to specify in the upstart job the command to be used for reload?00:38
mathiazslangasek: ie send SIGUSR2 to the process for example?00:38
slangasekno00:41
LLStarksokay. can somebody tell me why reinstalling packages doesn't actually reinstall files?00:49
LLStarksif i reinstall the pulseaudio package after rm'ing the /etc/pulse directory, i expect it to be restored.00:49
LLStarksi shouldn't have to purge and then install00:49
RAOFLLStarks: /etc/pulse/ contains conffiles (as defined by dpkg), and dpkg makes sure that your changes to conffiles are preserved across installs.00:50
LLStarkshow do i override?00:50
RAOFWell, you've found one way; purging will remove dpkg's memory of your conf file changes.00:50
LLStarkswell, that can break and uninstall other packages00:51
LLStarksis there a more direct way?00:51
RAOFdpkg --purge --force-depends should purge just the package you're interested in, leaving everything else installed (but broken).  I think.00:52
RAOFThen installing again will reconfigure everything.00:52
geserIIRC there are some options to dpkg to force reinstall of missing /etc/ files00:53
geserLLStarks: try "dpkg --force-confmiss $the.deb"00:54
LLStarksthanks.00:54
=== TLUL is now known as TLUL_teh_lurker
=== TLUL_teh_lurker is now known as TLUL
=== joshua is now known as Guest57151
=== v is now known as vorian
=== joshua is now known as Guest23314
=== vish is now known as mac_v
=== mac_v is now known as vish
persiaslangasek: IF you're still interested in a UDW slot, you can have mine, as I'm just reprising a talk I've given lots of times (and I suspect all would be better served by a good understanding of upstart vs. me blathering about stacktraces again)10:40
slangasekpersia: when is your slot?  I haven't done any prep work yet10:51
persiaFriday10:54
* persia digs up the exact time10:54
persia29th January 20:00 UTC.  It's 5:00 saturday local for me, so I really won't miss it :)10:55
=== arand_ is now known as arand
hyperairis it possible to create nfs shares without requiring root access?13:20
hyperairif it was, then i could possibly expand nautilus-share's scope to include NFS support.13:20
=== ryanakca_ is now known as ryanakca
=== Eren is now known as Guest34070
=== Nafallo_ is now known as Nafallo
=== yofel_ is now known as yofel
=== andresmujica1 is now known as andresmujica
=== andresmujica1 is now known as andresmujica
geserwhat's the solution for the python and linking with ssl issue?19:34
ScottKWhat's the issue?19:35
geserI'm trying to merge vim and got the problem that linking with python failed because of -lssl not being there19:37
geserI remember that some other builds had similar issues in the past too19:38
geserScottK: looks like vim pulls in the value from LOCALMODLIBS from /usr/lib/python2.6/config/Makefile and -lssl is listed there19:53
_Groo_hi/2 all19:55
ScottKgeser: Oh.  No idea on that one.19:55
_Groo_you guys are updating to rc2 as i can see, gonna have to update my kde multimedia pulseaudio as soon as you upload the new multimedia to lucid19:56
ionhi/2 looks like an Erlang function reference.19:58
_Groo_ion: actually its an os/2 old warrior reference19:59
_Groo_ScottK: is rc2 be up 100% today (also with kdebindings for the first time? oO20:00
ScottK_Groo_: I know it's building now.  I didn't help with the packaging this time around, so I don't know about kdebindings.20:01
* _Groo_ cross is fingers20:01
_Groo_ScottK: but the complete package will be uploaded today?20:02
ScottK_Groo_: It's all uploaded now.  In the process of building.20:02
_Groo_ScottK: sorry i mean published :) do you have a url i could see fo check for building progress?20:02
ScottK_Groo_: For kdebindings?20:03
ScottKThere isn't one url for all of KDE.20:03
_Groo_ScottK: no, i mean, are you using a ppa to test or something like that? i wanna check what packages are built and published already20:03
ScottK_Groo_: For Lucid, it's in the Ubuntu archive.20:04
_Groo_ScottK: link pls?20:04
ScottK_Groo_: There isn't one for all of KDE.  You should probably ask in #kubuntu-devel for someone who was involved in packaging it.20:05
_Groo_ScottK: OMG i forgot that konversation removed that tab lol.. you are right20:07
qenseWhat is the difference between Python packages in /usr/share/pyshared/ and those in /usr/share/?21:02
ScottKGenerally the ones in /usr/share/pyshared are designed to (properly) support more than one Python version on a system.21:35

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