=== 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 | ||
Keybuk | Md: the CONFIG_SYSFS_DEPRECATED option makes some amount of difference | 01:49 |
---|---|---|
Keybuk | a bunch of stuff in /sys/class gets turned into symlinks and moves under /sys/devices instead | 01:49 |
Keybuk | but doesn't seem to change /sys/block at all yet | 01: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 | ||
Keybuk | interesting | 01:51 |
Keybuk | initctl emit doesn't seem to always work | 01:52 |
Keybuk | except the not working seems to be consistent | 01:52 |
=== cortana [n=sam@62-31-146-25.cable.ubr12.azte.blueyonder.co.uk] has joined #upstart | ||
_ion | I'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 |
Keybuk | where'd we use that? | 02:18 |
Keybuk | assuming you generate the events from udev, you already have that information? | 02:18 |
_ion | You have the information about what physical device any partition is, whether it's on LVM or MD or a combination of those? | 02:19 |
_ion | device(s), that is. | 02:20 |
Keybuk | it's quite hard to determine "physical device" for LVM or MD :p | 02:21 |
Keybuk | it might be several | 02:21 |
_ion | It's not hard, and one of the examples showed the tool printing several devices because of RAID. :-) | 02:21 |
_ion | I 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":; done | 02:23 |
_ion | dm-0: sda sdb | 02:23 |
_ion | md1: sda sdb | 02:24 |
_ion | sda: sda | 02:24 |
_ion | Also: sda/sda1: sda | 02: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/www | 04:41 |
AlexExtreme | thanks | 04:41 |
wasabi | i assume there's some very compelling reason why you didn't just read /etc/apache2 | 04:42 |
AlexExtreme | i haven't installed it yet, i'm just asking because i need to know what to do with the partitions | 04:43 |
_ion | http://tnx.nl/php.jpg | 04:45 |
wasabi | haha nice | 04:45 |
AlexExtreme | :P | 04:46 |
wasabi | Oh. Use LVM. | 04:46 |
wasabi | THen when I turn out to be wrong, you can fix it. | 04:46 |
AlexExtreme | Yeah, 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 | ||
Keybuk | oh | 06:51 |
Keybuk | so that's why it doesn't work if you try and emit an event that stops an instance job | 06:52 |
Keybuk | Mar 11 17:51:42 wing-commander init: job.c:714: Assertion failed in job_change_goal: (! job->instance) || (job->instance_of != NULL) | 06:52 |
Keybuk | Mar 11 17:51:42 wing-commander init: Caught abort, core dumped | 06: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!