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 :( Looking forward to get this running before weekend ... Regards Florian > > lrmd[3538]: 2008/02/29_13:58:26 info: RA output: (AFD:start:stdout) > > Failed. > > > > crmd[3541]: 2008/02/29_13:58:26 info: process_lrm_event: LRM operation > > AFD_start_0 (call=3, rc=0) complete > > tengine[3556]: 2008/02/29_13:58:26 info: match_graph_event: Action > > AFD_start_0 (4) confirmed on noderz (rc=0) > > tengine[3556]: 2008/02/29_13:58:26 info: send_rsc_command: Initiating > > action 5: AFD_monitor_30000 on noderz > > crmd[3541]: 2008/02/29_13:58:26 info: do_lrm_rsc_op: Performing > > op=AFD_monitor_30000 key=5:1:151fabd8-d44a-40b1-b946-38480dbd8c8f) > > lrmd[3538]: 2008/02/29_13:58:27 info: RA output: (AFD:monitor:stderr) > > ERROR : Failed to determine AFD working directory! > > No option -w or environment variable AFD_WORK_DIR set. > > > > > > > > How can I set this environment-variable AFD_WORK_DIR globally > > I have it in ~/.bash_profile, but this doesn't work for the afdha-user > > :-( > > > > I'm working with linux only since 4 or 5 weeks (since I started building > > that heartbeat/drbd-cluster)...so my skills are not that good, but I try > > to improve ;) > > > > Thanks > > Florian > _______________________________________________ > 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
