/srv/irclogs.ubuntu.com/2011/02/18/#upstart.txt

Keybukion: talking of which00:20
Keybukhttp://upstart.at/git/?p=scott/intendant.git;a=summary00:20
Keybukcould do with some testing00:20
ionwoot00:21
Keybukbasically you build it then do00:21
Keybuksudo ./intendant /some/binary00:21
ionI’ll try it out after some sleep.00:21
Keybukin theory no binary should be able to escape it's supervision00:21
Keybukif you can try it with a few favorite daemons and mail me the logs, that'd be great00:21
Keybuk(since it's also for comparing techniques)00:21
ionAlright00:21
ionWhat’s the clone URL? I guessed git://upstart.at/scott/intendant.git but it didn’t work.00:26
SeveredCrossHey folks, how do I set the working directory for an upstart job?00:26
KeybukSeveredCross: "chdir /working/directory" in the .conf file00:27
SeveredCrossAwesome, thanks.00:27
Keybukion: oh, does it not say? git://upstart.at/git/scott/intendant.git iirc00:27
ionThat was my second guess and it didn’t work either. :-)00:27
Keybukweird00:28
ionWhen using gitweb, one can add a file named ‘cloneurl’ to the root of each repository and the UI’ll display the contents.00:29
ionThat is, to the directory where ‘description’ goes as well.00:30
Keybuktry now00:33
ionWorks with /git/. (Btw, isn’t that redundant? When i’ve been running git-daemon i haven’t had the need to include that part in the clone URLs.)00:36
Keybukyeah, turns out that is an option to git-daemon00:36
KeybukI added --base-path=/git --base-path-relaxed now00:36
Keybukso both should work00:36
ionYeah, works now.00:41
twbMy new upstart job needs DNS resolution to be working before it starts06:17
twbWhat even do I "start on" ?06:17
twb(This is on lucid, btw)06:19
SeveredCrossProbably networking.06:36
SeveredCrossI don't think there's anything more fine-grained that would get you /just/ DNS.06:36
twbIt didn't like networking06:37
twbBased on what vsftpd does, I used start on (runlevel [2345] and net-device-up IFACE!=lo)06:37
twbWhich assumes there's only one iface, but that's OK for my immediate purposes06:37
twbIIUC networking didn't work because the *network* comes up before dhclient finishes setting up the configuration recommended to it by the dhcp server06:38
twbUGH, but now it isn't terminating properly06:39
twbhttp://paste.debian.net/108031/06:40
twbhttp://paste.debian.net/108033/06:40
JanCyou could probably hook into a dhclient exit hook06:45
JanCor something like that06:45
twbthere should already be one...06:48
twbat least, i thought there was06:49
twbalthough come to think of it, the host I'm testing is in the dmz and has static networking06:49
twbFor some reason http://paste.debian.net/108034/ STARTS UP again during the shutdown sequence06:58
twbI give up.  I'll just remove the options where collectd needs name resolution, and hard-code IPs into its config file.07:09
SeveredCrossOoh, I've been looking at deploying collectd, heh.07:12
SeveredCrossI want to collect data from my machines, relay it to a central box, and make pretty graphs so I can monitor them.07:12
twbThat's what I'm doing07:13
twbI'll pastebin my build scripts for you07:13
SeveredCrossOh, nice, thanks.07:13
twbhttp://paste.debian.net/108035/ is the hub07:14
twbhttp://paste.debian.net/108036/ is the spokes07:14
twb(Note that the hub starts out as a spoke, so really hub = spoke+hub)07:14
twbAnd the latter should also have an "apt-get install collectd-core" at the top.07:15
SeveredCrossNice.07:15
SeveredCrossThanks, I'll save those and work off of them.07:15
twbUnless your spokes are all LXC containers, you'll want to add in a bunch more plugins, e.g. disk and network07:17
SeveredCrossYeah, disk, network, processes and memory is what I want to monitor.07:17
twbRef. http://collectd.org/wiki/index.php/Table_of_Plugins07:17
SeveredCrossI'll probably end up graphing the data with rrdtool on the hub side, but I'm not sure how that's going to work07:18
twbIn my code, you can see I use collection3 to do it07:18
SeveredCrossYeah.07:18
twbIt's at least as nice as munin07:18
SeveredCrossI'm just unsure if it's going to display all the machines in the same graph for any particular data type, or if it'll do graph per spoke per data type.07:19
twbSeveredCross: collection3 can display all hosts for a graph, or all graphs for a host (or subsets of either).07:19
SeveredCrossNice.07:19
twbEach image is of one datum of one host07:19
SeveredCrossI'd like to at some point write a frontend for it that I can just connect to a connectd hub and it'll get the data, but that's far off in the future.07:20
twbSeveredCross: well, collection3 does that -- you connect by way of HTTP :-P07:20
SeveredCross:P07:21
twbOr you could rsync the rrd databases over ssh, I guess07:21
SeveredCrossYeah, but that's failure-prone, and why do that when I have a fancy VPN connection to the hub. :>07:22
twbWhat, you run rsh instead of ssh on your private networks?07:22
SeveredCrossHeh, no, but I'm forgetful, and I don't like having lots of files on my home machine that I don't need.07:23
=== apachelogger_ is now known as apachelogger
=== mezcaler1 is now known as mezcalero
ionkeybuk: You’ve got mail.19:54
Keybukion: thx!20:54
=== ion_ is now known as ion

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