From: Buchan M. <bg...@st...> - 2008-10-16 07:55:53
|
On Thursday 16 October 2008 05:39:21 Craig Boyce wrote: > Hi Buchan, > > This is great, I have it up and working but only if I run the script > manually, It won't run from hobbitlaunch. By manually, do you mean in a shell that was started by bbcmd (or some other means that ensures the ENV variables are available)? > I took your entries from weathermap.cfg and added to hobbitlaunch.cfg as > below but the hobbit environment variables don't seem to be passed to > the perl script so it fails to run. Hmm, that's almost impossible ... everything run by hobbitlaunch should get the environment variables. > [weathermap] > ENVFILE /home/hobbit/server/etc/hobbitserver.cfg Is this the right file? > CMD $BBHOME/ext/weathermap.pl --image-uri=weathermap.png > LOGFILE $BBSERVERLOGS/bb-weathermap-wan.log > INTERVAL 1m > > I then reread the install notes and noticed the following that I had > over looked the following, I assume this is why the environment > variables are not getting passed. > > the weathermap.cfg file to a directory referenced by hobbitlaunch.cfg > (e.g. $BBHOME/etc/hobbitlaunch.d/) > > Can you expand on the weathermap.cfg and hobbitlaunch.cfg configuration. echo "directory $BBHOME/etc/hobbitlaunch.d/" >> $BBHOME/etc/hobbitlaunch.cfg But, it's effectively the same as cat'ing the file on to hobbitlaunch.cfg (but, using it makes it easier to ship extensions in packages, which is what I plan to do once I'm finished with major changes to this). I can't think of anything else that would be wrong, but I'll think about it some more. Regards, Buchan |