[Pacemaker] /.crm_help_index file (in system root aka /)
Lars Ellenberg
lars.ellenberg at linbit.com
Mon Jul 12 15:36:06 UTC 2010
On Mon, Jul 12, 2010 at 05:17:34PM +0200, Raoul Bhatia [IPAX] wrote:
> On 07/02/2010 03:26 PM, Dejan Muhamedagic wrote:
> > On Thu, Jul 01, 2010 at 07:46:44PM +0200, Raoul Bhatia [IPAX] wrote:
> >> On 07/01/2010 05:46 PM, Dejan Muhamedagic wrote:
> >>> The help index is created in the user's home. Is that the home of
> >>> the root user? Shouldn't it be /root? BTW, there are many other
> >>> programs creating dot files in home dirs.
> >>
> >> yeah, i know. and /root/.xxxx would perfectly be fine.
> >>
> >> but occasionally, it appears in /
> >>
> >> thats the "issue".
> >
> > OK, it's because the HOME variable expands to zilch. Now, that
> > may be a problem because we definitely need a place for the help
> > index. In case there's no HOME variable the shell may refuse to
> > create the index which means there wouldn't be any help, but this
> > has to be tested. You can open a bugzilla if bothered.
>
> hi,
>
> thinking about it, it *might* be related to cronjobs:
>
> > # cat /etc/cron.d/ipax_backup
> > PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
> >
> > # m h dom mon dow user command
> > 00 07 * * * root /root/bin/do_i_run_res.sh mysql-server && /root/bin/backup.mysql.sh > /dev/null
>
> can you confirm my suspicion? shall i still open a bugzilla?
put some "( date ; env) >> /tmp/tmp.debug.log" into your script,
then we can determine if the crm shell assumes too much.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the Pacemaker
mailing list