From: Peter a. <pio...@co...> - 2012-04-08 13:16:05
|
Many thanks Steve :) we fixed it and we will have it in our next release this month :) cheers aNeutrino -- Peter aNeutrino http://pl.linkedin.com/in/aneutrino+48 602 302 132 Evangelist and Product Manager of http://MooseFS.org at Core Technology sp. z o.o. On Thu, Apr 5, 2012 at 16:31, Steve Wilson <st...@pu...> wrote: > Hi, > > The initialization of the DATADIR, MFSUSER, and MFSGROUP variables in > the Debian init scripts is incorrect in the latest release of MooseFS > (1.6.24). Here are the original lines: > > DATADIR=$(sed -e 's/^DATA_PATH[ ]*=[ ]*\([^ ]*\)[ > > ]*$/\1/' "$CFGFILE") > > MFSUSER=$(sed -e 's/^WORKING_USER[ ]*=[ ]*\([^ ]*\)[ > > ]*$/\1/' "$CFGFILE") > > MFSGROUP=$(sed -e 's/^WORKING_GROUP[ ]*=[ ]*\([^ ]*\)[ > > ]*$/\1/' "$CFGFILE") > This places the contents of the whole config file into each variable > with one or more lines modified by sed. > > These lines should be changed to something like the following: > > DATADIR=$(grep "^DATA_PATH" "$CFGFILE" | tail -1 | sed -e > > 's/^DATA_PATH[ \t]*=[ \t]*\([^ \t]*\)[ \t]*$/\1/') > > MFSUSER=$(grep "^WORKING_USER" "$CFGFILE" | tail -1 | sed -e > > 's/^WORKING_USER[ \t]*=[ \t]*\([^ \t]*\)[ \t]*$/\1/') > > MFSGROUP=$(grep "^WORKING_GROUP" "$CFGFILE" | tail -1 | sed -e > > 's/^WORKING_GROUP[ \t]*=[ \t]*\([^ \t]*\)[ \t]*$/\1/') > > Thanks, > Steve > > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > _______________________________________________ > moosefs-users mailing list > moo...@li... > https://lists.sourceforge.net/lists/listinfo/moosefs-users > |