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