/srv/irclogs.ubuntu.com/2007/03/11/#upstart.txt

=== cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart
=== administrator_ [i=administ@nat/cisco/x-79480a3109370a5d] has joined #upstart
=== theCore [n=alex@ubuntu/member/theCore] has joined #upstart
=== Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart
KeybukMd: the CONFIG_SYSFS_DEPRECATED option makes some amount of difference01:49
Keybuka bunch of stuff in /sys/class gets turned into symlinks and moves under /sys/devices instead01:49
Keybukbut doesn't seem to change /sys/block at all yet01:49
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== j_ack [n=rudi@p508DB43F.dip0.t-ipconnect.de] has joined #upstart
=== administrator_ [i=administ@nat/cisco/x-675c5b38742bbc7e] has joined #upstart
=== phsdv [n=paul@91.168.168.202] has joined #upstart
=== Md [i=md@freenode/staff/md] has joined #upstart
=== ghostaxe [n=1033AE55@211.161.22.1] has joined #upstart
=== ghostaxe [n=1033AE55@211.161.22.1] has left #upstart []
=== Keybuk [n=scott@wing-commander.netsplit.com] has joined #upstart
Keybukinteresting01:51
Keybukinitctl emit doesn't seem to always work01:52
Keybukexcept the not working seems to be consistent01:52
=== cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart
_ionI'll try to get around to writing a small C tool that works like this: 'foo --dev /sys/block/sda/sda1' prints '/dev/sda1', 'foo --sys /dev/sda1' prints '/sys/block/sda/sda1', 'foo /dev/volumegroup/foo' prints '/sys/block/dm-0' (--sys is the default, as opposed to --dev), Both 'foo --slaves /sys/block/dm-0' and 'foo --slaves /dev/volumegroup/foo' print '/sys/block/md1', 'foo --physdev /dev/volumegroup/foo' prints '/sys/block/sda /sys/block/sdb', 'foo ...02:06
_ion... --dev --physdev /dev/volumegroup/foo' prints '/dev/sda /dev/sdb'. Also --short would omit either the '/sys/block/' or the '/dev/' prefixes from the output.02:06
Keybukwhere'd we use that?02:18
Keybukassuming you generate the events from udev, you already have that information?02:18
_ionYou have the information about what physical device any partition is, whether it's on LVM or MD or a combination of those?02:19
_iondevice(s), that is.02:20
Keybukit's quite hard to determine "physical device" for LVM or MD :p02:21
Keybukit might be several02:21
_ionIt's not hard, and one of the examples showed the tool printing several devices because of RAID. :-)02:21
_ionI did some prototyping for the functionality in sh,02:23
_ion% foo() { local syspath="${1#/sys/block/}"; syspath="${syspath%%/*}"; set -- $(ls -1 /sys/block/"$syspath"/slaves); if [ "$*" = "" ] ; then echo "$syspath"; else for file in "$@"; do foo "$(readlink -f /sys/block/"$syspath"/slaves/"$file")"; done; fi; }; for f in dm-0 md1 sda; do foo "$f" | xargs echo "$f":; done02:23
_iondm-0: sda sdb02:23
_ionmd1: sda sdb02:24
_ionsda: sda02:24
_ionAlso: sda/sda1: sda02:24
Keybuk*nods*02:29
=== Amaranth_ [n=travis@ubuntu/member/Amaranth] has joined #upstart
=== j_ack [n=rudi@p508DB1E8.dip0.t-ipconnect.de] has joined #upstart
AlexExtreme<off-topic>i'm installing ubuntu edgy server edition, does anyone here know where it's default location for apache's DocumentRoot is if I select the LAMP server option?</off-topic>04:40
wasabi/var/www04:41
AlexExtremethanks04:41
wasabii assume there's some very compelling reason why you didn't just read /etc/apache204:42
AlexExtremei haven't installed it yet, i'm just asking because i need to know what to do with the partitions04:43
_ionhttp://tnx.nl/php.jpg04:45
wasabihaha nice04:45
AlexExtreme:P04:46
wasabiOh. Use LVM.04:46
wasabiTHen when I turn out to be wrong, you can fix it.04:46
AlexExtremeYeah, I will :)04:46
=== Starting logfile irclogs/upstart.log
=== ubuntulog [i=ubuntulo@ubuntu/bot/ubuntulog] has joined #upstart
=== Topic for #upstart: Upstart 0.3.7 | http://upstart.ubuntu.com/ | http://upstart.ubuntu.com/wiki/ | http://upstart.ubuntu.com/doc/getting-started.html | http://codebrowse.launchpad.net/~keybuk/upstart/main/changes | irc logs: http://people.ubuntu.com/~fabbione/irclogs | http://upstart.ubuntu.com/wiki/UpstartOnGentoo
=== Topic (#upstart): set by Keybuk at Fri Mar 9 22:35:00 2007
=== mbiebl [n=michael@dialin-145-254-251-079.pools.arcor-ip.net] has joined #upstart
=== mbiebl [n=michael@Tb7b4.t.pppool.de] has joined #upstart
Keybukoh06:51
Keybukso that's why it doesn't work if you try and emit an event that stops an instance job06:52
KeybukMar 11 17:51:42 wing-commander init: job.c:714: Assertion failed in job_change_goal: (! job->instance) || (job->instance_of != NULL)06:52
KeybukMar 11 17:51:42 wing-commander init: Caught abort, core dumped06:52
=== administrator_ [i=administ@nat/cisco/x-45e10354eb6e4670] has joined #upstart
=== ..[topic/#upstart:Keybuk] : Upstart 0.3.8 | http://upstart.ubuntu.com/ | http://upstart.ubuntu.com/wiki/ | http://upstart.ubuntu.com/doc/getting-started.html | http://codebrowse.launchpad.net/~keybuk/upstart/main/changes | irc logs: http://people.ubuntu.com/~fabbione/irclogs | http://upstart.ubuntu.com/wiki/UpstartOnGentoo
=== theCore [n=alex@ubuntu/member/theCore] has joined #upstart
=== juergbi [n=juerg@80-219-17-102.dclient.hispeed.ch] has joined #upstart
=== j_ack [n=rudi@p508DB1E8.dip0.t-ipconnect.de] has joined #upstart
=== Amaranth [n=travis@ubuntu/member/Amaranth] has joined #upstart

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