/srv/irclogs.ubuntu.com/2012/07/31/#upstart.txt

jMCgSo, no update here, huh?09:29
jMCgI get the same results when I export HOME=/opt/logstash within script, so I'm assuming something is going wrong :-\09:30
SpamapSjMCg: looking now17:51
SpamapSjMCg: export in upstart jobs is for the events only. All env's are "exported" to the scripts/processes that are run in pre/post-stop/start and the main process17:53
SpamapSjMCg: http://paste.ubuntu.com/1121877/17:54
SpamapSjMCg: results in Jul 31 10:52:18 clint-MacBookPro test: HOME=/home/foo17:54
jMCgSpamapS: so that should work :-S18:09
SpamapSjMCg: yes it should. Are you certain java is really java, and not some shell script that sources an env file?18:12
jMCgSpamapS: http://sprunge.us/bNfB18:27
SpamapSjMCg: ok well then HOME should be set :)18:29
jMCg\but the progra, is still spitting out millions of errors, which relate to HOME not being set18:39
jMCg(Which is kind of counter productive, because it's supposed to collect and index logs ;)18:57
gchristensenI have a script that runs as a foreach loop over a long list, and executes a command on each one. is it kosher to add the foreach and all between script and end script? or should I haveit pulled out into a separate file19:23
gchristensen(I know I *could* do it, but best practices anda ll..)19:24
jMCggchristensen: what, exactly, does it do?19:26
gchristensenit iterates over a list of 500+ clients and triggers an event in a queue. the "general" idea is we want this system to basically continue running forever, so at the end of the list it would respawn (it takes about 20min to go through the list)19:28
gchristensenso using respawn, limit 2 600 19:28
SpamapSgchristensen: its perfectly kosher to have the shell code in the script/end script be "the program". Just not very easy to maintain.22:08
SpamapSgchristensen: were it my system, I'd put it somewhere else and exec that so that the upstart bit and the "code" are separate22:09
gchristensensoudns good. thank you SpamapS 22:16

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