=== dAndy [i=dandy@serenity.cat.pdx.edu] has joined #upstart === benmur [n=benmur@friends.sukria.net] has joined #upstart === ion_ [i=ion@heh.fi] has joined #upstart === AlexExtreme [n=AlexExtr@frugalware/developer/AlexExtreme] has joined #upstart === crazy [n=crazy@frugalware/developer/crazy] has joined #upstart === Starting logfile irclogs/upstart.log === ubuntulog [i=ubuntulo@ubuntu/bot/ubuntulog] has joined #upstart === Topic for #upstart: Upstart 0.3.8 | http://upstart.ubuntu.com/ | http://upstart.ubuntu.com/wiki/UpstartOnGentoo === Topic (#upstart): set by Md at Sun May 6 19:59:46 2007 === sadleder [n=sadleder@p508105f2.dip0.t-ipconnect.de] has joined #upstart === cort [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart === juergbi [n=juerg@80-219-18-22.dclient.hispeed.ch] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === netjoined: irc.freenode.net -> kubrick.freenode.net === juergbi [n=juerg@80-219-18-22.dclient.hispeed.ch] has joined #upstart === Keybuk [n=scott@quest.netsplit.com] has joined #upstart === BleSS [n=BleSS@29.Red-81-38-116.dynamicIP.rima-tde.net] has joined #upstart [03:05] does upstart is used by default in ubuntu 7.04? [03:06] I said because I updated from 6.04 to 6.10 (installed Upstart), and to 7.04 (directory /etc/event.d/ has been deleted) [03:07] so I don't know if my system is using upstart [03:08] it is used by default [03:08] Do you have the packages ubuntu-minimal and ubuntu-standard installed? [03:08] however you may have older or unofficial things listed in sources.list which could have caused its removal and replacement with sysvinit [03:11] Keybuk: but I followed all steps correctly to update it [03:13] there could be a documentation bug [03:13] ion_: yes, I have both [03:13] ah, one thing, it's ubuntu server [03:16] I've installed ubuntu anyway, sudo dpkg -l |grep upstart [03:16] s/ubuntu/upstart [03:16] upstart, upstart-compat-sysv, upstart-logd [03:17] Does dpkg -S /etc/event.d find anything? [03:18] yes, it shows [03:18] upstart-logd, system-services, startup-tasks, upstart, upstart-compat-sysv: /etc/event.d [03:20] sounds like you (or something) wiped /etc/event.d by hand [03:20] dpkg -s system-services | grep Status [03:22] Keybuk: you have reason, when I updated from 6.10 to 7.04, the script question me about those files [03:23] you modified them? [03:23] I choosed 'uptade to maintaner's version' or anything so and it deleted them [03:24] hmm [03:25] I don't remember exactly the question but I choosed the most logical [03:25] I'll reinstall again to check it [03:25] thanks [03:41] BleSS: try doing upgrades inside of the 'script' command [03:41] it keeps a log of everything that happens on the tty [04:00] cort: ok, thanks === tale [n=tale@207.235.54.1] has joined #upstart === sadleder [n=sadleder@p508105f2.dip0.t-ipconnect.de] has left #upstart [] [05:09] ok, I'm there, in that question [05:09] Configuration file `/etc/event.d/tty2' [05:09] ==> Deleted (by you or by a script) since installation. [05:09] ==> Package distributor has shipped an updated version. [05:10] What would you like to do about it ? Your options are: [05:10] Y or I : install the package maintainer's version [05:10] N or O : keep your currently-installed version [05:10] D : show the differences between the versions [05:10] Z : background this process to examine the situation [05:10] The default action is to keep your current version. [05:10] *** tty2 (Y/I/N/O/D/Z) [default=N] ? [05:10] ==> Deleted (by you or by a script) since installation. [05:10] is the important bit ;) [05:11] so Y, install the package maintainer's version [05:11] if he said N then wouldn't he get an /etc/event.d/tty2.dpkg-dist ? [05:11] probably, yes [05:11] which doesn't explain why the whole of /etc/event.d was gone [05:11] unless the directory was removed entirely [05:11] i choosed that option in the anterior instalation [05:11] Y [05:11] dpkg never removes directories [05:11] so somebody did rm -rf /etc/event.d [05:12] to update from 6.10 to 7.04 I used: apt-get install update-manager-core && do-release-upgrade [05:13] I didn't deleted nothing [05:14] you must have done while on 6.10 [05:14] before upgrading [05:15] no, I used 6.04 and it was updated to 6.10 [05:16] so the installation script has deleted /etc/env.d [05:18] My steps: from 6.04 to 6.10 :: [05:18] sed -e 's/\sdapper/ edgy/g' /etc/apt/sources.list -i [05:18] apt-get update && apt-get dist-upgrade && apt-get dist-upgrade [05:18] apt-get update && apt-get dist-upgrade [05:18] apt-get -f install && dpkg --configure -a [05:18] shutdown -r now [05:18] From 6.10 to 7.04 :: [05:19] apt-get install update-manager-core && do-release-upgrade [05:19] so I'm supposed that there is a little bug in the installation script [05:20] s/installation/7.04 updating [05:22] I can guarantee that the installation and upgrade scripts do not delete that directory [05:22] I grepped the entire ubuntu source code earlier to check [05:23] I've upgraded from 6.04 ubuntu server in Slicehost [05:23] and I run all those commands [05:24] so if I didn't delete those files... [05:24] grep -r event.d /var/lib/dpkg/info [05:24] capture the output of that and pastebin it [05:24] and the most strange is that I use Y to install those files but they aren't installed [05:32] Keybuk: http://pastey.net/31022 [05:35] random question, do you have an /etc/inittab ? [05:35] if so, can you pastebin that too [05:36] yes, it's [05:37] http://pastey.net/31030 [05:38] ok, that's correct then [05:38] tty2-6 should be missing [05:38] tty1 and control-alt-delete should still exist thoug [05:39] ps -ef |grep getty -> tty1-6 are enabled [05:39] ah, that reminds me, iirc there was a problem with the migrate-inittab script for someone who was here last week, it seems to have incorrectly changed the tty job files, causing them to have syntax errors and therefore they won't run [05:39] ls /etc/event.d -> pastebin for me [05:39] AlexExtreme: yeah, lots of bugs with that script [05:39] most amusing one - follow the README and make an empty inittab except for the default runlevel, it helpfully disables all the ttys for you on upgrade [05:39] :p [05:40] Keybuk: that dir. doesn't exist (/etc/event.d) [05:41] heh [05:41] the paste containing what it did for him has expired though.... [05:41] sorry [05:42] Keybuk: http://pastey.net/31038 [05:43] BleSS: *shrug* looks like you've not got a problem [05:43] what did you say got deleted? === AlexExtreme tests his event based networking implementation [05:44] Keybuk: I don't understand, in the anterior instalation, they were deleted [05:45] and when it showed me "==> Deleted (by you or by a script) since installation." I used Y as now [05:45] how did they reappear then? [05:46] Keybuk: I say before of re-install ubuntu and upgrade until 7.04 [05:47] ? [05:47] you've utterly confused me now [05:47] you installed 6.04, upgraded to 6.10 and then to 7.04 ? [05:47] somewhere along the way, files in /etc/event.d got deleted and then *came back again* ? [05:47] and when it showed me "==> Deleted (by you or by a script) since installation." I used Y as now [05:47] they came back from that [05:48] so they disappeared during the upgrade somehow, then he tried to reinstall them and answered yes [05:48] yes, that is it [05:48] keybuk: Btw, are you going to push your libnih and upstart branches to the public branch any time soon? :-) [05:49] AlexExtreme: thanks my english is not very good and I cann't explain me well [05:49] ion_: there's nothing extra in my branches right now [05:49] AlexExtreme: right [05:49] thanks! [05:49] so only tty2-6 disappeared? [05:50] the questions were only for tty2-6 [05:51] keybuk: I recall you merged the delayed watch functionality. I might remember incorrectly, though. :-) [05:52] I was merging it yeah [05:52] but I never finished that [05:52] (and it's in a separate branch) [05:52] Ah, alright. [05:52] couldn't work out how it dealt with the "directory tree created or removed" problem [05:52] BleSS: ok, that's correct then [05:52] BleSS: at some point in the past, you or something you used edited /etc/inittab and disabled tty2-6 [05:53] BleSS: when you upgraded, it was entirely correct that those were disabled in upstart too [05:53] and you'll get a config file prompt for them [05:53] Hm, i probably didnt think of that back then... [05:53] (as you would have it we changed /etc/inittab) [05:53] ion_: the remove case is tricky, since you need to free the inotify watch structure, yet hold on to the hash table :p [05:54] ok, but I did't edited /etc/inittab, is possible that was changed by the guys from Slicehost [05:54] sure [05:55] probably, since slicehost uses Xen, right? they would have disabled the extra ttys since they're irrelavent for Xen and don't even start IIRC [05:55] AlexExtreme: yes, they use Xen [05:56] brb, testing something [06:05] Keybuk: I have reason. I just rebuild my slice (ubuntu 6.04) and tty2-6 are disabled by default [06:05] http://pastey.net/31048 [06:05] s/I/You [06:05] s/I have reason/you have reason [06:09] sure [06:09] but they're disabled because your system installer disabled them for you ;) [06:09] that's been modified from the ubuntu default, the tty2-6 lines have been commented out [06:10] hence what i said about xen :) [06:11] the extra ttys are completely unable to start while running Xen because the extra tty device nodes don't even exist [06:12] Hm, perhaps there should be a single tty job, instances of which would be triggered by udev for each tty[0-9] . :-) [06:13] Uh, tty[1-6] [06:13] that's an interesting alternate approach [06:14] /etc/event.d/getty [06:14] start on tty-added tty1 [06:14] start on tty-added tty2 [06:14] start on tty-added tty3 [06:14] start on tty-added tty4 [06:14] start on tty-added tty5 [06:14] start on tty-added tty6 [06:14] ? [06:14] you'd have to wait for stuff like writable filesystem though [06:14] you'd need the "stop on tty-removed $1" thing though [06:14] but yes, it sounds interesting [06:14] that's actually much more in keeping with the upstartish way of doing things [06:16] start on tty-added tty[1-6] (fnmatch(3) pattern) [06:16] Could be squeezed to a single line. :-) [06:16] talking of waiting for writable filesystem... [06:16] i need some way of doing that with my event based networking stuff [06:17] since you need writable FS for dhcpcd [06:18] that would be possible with complex-event-config, right? i mean for now i can just loop until the FS is writable [06:20] ion_: I keep forgetting upstart uses fnmatch for those :p [06:20] why does dhcpd need a writable filesystem? [06:21] Actually i didnt remember whether it does or not, i thought if it doesnt, heres a suggestion for a feature as well. :-) [06:21] to write it's info files at /etc/dhcpc and the pid file [06:21] /etc? Evil! [06:22] well technically dhcpcd 3 uses /var/lib [06:22] but i patched it to use the old paths until i migrate the network utils to use the new paths (which i'm gonna do in a few mins :p) [06:23] the whole "complex event" thing is getting tricky to see through the fog === juergbi [n=juerg@80-219-18-22.dclient.hispeed.ch] has joined #upstart === Md [i=md@freenode/staff/md] has joined #upstart === cort [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart