Thanks a lot, guys,
got it working :)

But once again back to the LSB-Scripts..first app (AFD) is now running, but 
second app (SAProuter) not yet, because I not have a LSB-compliant RA yet.

Is there anyone outside who already does have such an application managed by 
heartbeat?

Google did not find anything nor did SAP help.

I do have a rudimentary RA, but I need to modify it to be LSB-compliant.

Regards

Florian

> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> ha.org] Im Auftrag von Dominik Klein
> Gesendet: Freitag, 29. Februar 2008 15:43
> An: General Linux-HA mailing list
> Betreff: Re: AW: AW: [Linux-HA] (no subject)
> 
> Schmidt, Florian wrote:
> >
> > Mit freundlichen Grüßen
> >
> >>> Hello,
> >>>
> >>> I wrote the following lines on top of the script code:
> >>> export PATH=$PATH:/home/afdha
> >>> export AFD_WORK_DIR=/usr/afd
> >>>
> >>> AFD needs one environment-variable named AFD_WORK_DIR to know,
> where
> >> to
> >>> work....
> >>>
> >>> I also did chown afdha:501 /usr/afd and chown /home/afdha
> >>>
> >>> How far does this work, because the heartbeat still does not start AFD,
> >>> but logs errors:
> >>>
> >>>
> >>> crmd[3541]: 2008/02/29_13:58:26 info: do_lrm_rsc_op: Performing
> >>> op=AFD_start_0 key=4:1:151fabd8-d44a-40b1-b946-38480dbd8c8f)
> >>> lrmd[3538]: 2008/02/29_13:58:26 info: rsc:AFD: start
> >>> lrmd[3583]: 2008/02/29_13:58:26 WARN: For LSB init script, no additional
> >>> parameters are needed.
> >>> lrmd[3538]: 2008/02/29_13:58:26 info: RA output: (AFD:start:stdout)
> >>> Starting AFD for afdha :
> >>> lrmd[3538]: 2008/02/29_13:58:26 info: RA output: (AFD:start:stderr)
> >>> ERROR   : Failed to determine AFD working directory!
> >>>
> >>> lrmd[3538]: 2008/02/29_13:58:26 info: RA output: (AFD:start:stderr)
> >>> No option -w or environment variable AFD_WORK_DIR set.
> >> This read as if you could start "afd -w /usr/afd ..." to set the work dir.
> >
> > I'm just trying this...
> >
> > But is there no possibility to set this variable globally?
> >
> > So well, thanks...THIS works....but now next errors occurred -.-
> >
> >
> > I once again tried this with
> > su - afdha
> > /etc/init.d/afdha start
> > Starting AFD for afdha : Password:
> > su: incorrect password
> > Failed.
> > touch: cannot touch `/var/lock/subsys/afd': Permission denied
> >
> > I don't know, what password he needs...
> >
> > The other problem is the denied permission for /var/lock/subsys/afd. How 
> > can I
> permit him to create this file there? I can create it by hand and chown this 
> to him,
> but he will remove it at next stop :(
> 
> join IRC #linux-ha :)
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to