/srv/irclogs.ubuntu.com/2012/12/27/#upstart.txt

ajohnstoneCan anyone explain why such a simple upstart fails to write to /tmp/? https://gist.github.com/4387936 12:23
ajohnstoneUpdated gist here... https://gist.github.com/438797712:26
ajohnstoneupstart 1.5-0ubuntu7  - if that makes any difference?12:30
JanCajohnstone: I'm not sure why it doesn't write to /tmp/ but your "service" exits immediately and thus will get into a respawn loop?14:46
ajohnstoneJanC: How can I debug what is going on better?14:47
ajohnstoneI've noticed on occassion it hanging to stop/start the service... I assume this to be in a respawn loop?14:48
JanCthat job file makes no sense at all, so I assume what you are really trying to do is something else?14:49
ajohnstoneYup, was trying to go back to bare basics to work out what the hell is going on14:50
JanCthis doesn't look like "bare basics" equivalent to any real world type of job14:51
JanCyou might want to use a "console log" stanza and not use redirects for you echos14:51
ajohnstoneWhen using console log or console output neither seemed to get pipped to syslog.14:53
ajohnstoneWhat I'm really trying to run. https://gist.github.com/4388880 The pre-start script never executes.14:54
JanC'console log' logs to a file in /var/log/upstart/14:54
ajohnstoneArr, stupid me:P14:54
JanCthe "start on startup" in there might make it start before /tmp/ is available?14:56
JanCyou also have 2 "respawn" stanzas and two "stop on" stanzas, only the last one will be used14:57
JanCajohnstone: did you read the cookbook yet?  (see /topic )14:59
ajohnstonetbh, skimmed it somewhat14:59
ajohnstoneIs it possible to capture the status event and execute a script before status?15:07
JanCno (there is some talk about that, I think, but currently it doesn't exist)15:08
ajohnstoneJanC: Thanks for your help so far, much appreciated. Hope you had a good Christmas.15:12
JanChm, looks like there is a graphite-carbon package in Ubuntu15:21
JanCwhich has a sysvinit script that might give you some inspiration15:21
JanC(or which you might prefer to use)15:22
ajohnstoneIt doesn't support instances I don't believe, think I looked at it already.15:25
ajohnstoneEnds up with python being pegged to a single core, so need to balance the traffic.15:26
SpamapSajohnstone: are you sure the pre-start never runs? perhaps /opt/graphite is not a directory?15:40
SpamapSajohnstone: try 'initctl log-priority info'15:40
ajohnstoneIt does exist, I have removed that check previously.15:40
ajohnstoneOn that machine it does not have "/var/log/upstart" btw15:41
SpamapSajohnstone: and really.. console log is what you want.. logging to /var/log/upstart/jobname-instance.log with built in rotation is a nice win :)15:42
SpamapSoh15:42
SpamapScreate that dir15:42
SpamapSits part of the upstart pkg IIRC15:42
ajohnstoneHeh, now I fee silly :) Permission denied: '/opt/graphite/storage/log/carbon-cache/carbon-cache-e/console.log15:43
ajohnstoneThanks for both your help :D15:44
SpamapS:)15:46
JanChm, seems like Canonical uses graphite too?16:21
ajohnstoneIts pretty good, at peak was doing 1.2 million stats a second, across haproxy, 3 carbon-cache and 2 relay servers. Very handy when you can change the charts around and contrast different things.16:23
JanCnot sure what they use it for, but they are listed on the "who is using graphite" page  ☺16:29
JanCtogether with some companies that probably have way more stats/charts than them  ☺16:30

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