[OPEN-ILS-GENERAL] getting brick_ctl.sh to work
Ben Shum
bshum at biblio.org
Tue May 10 07:57:36 EDT 2011
Hmm, I've never had to directly modify the brick_ctl.sh control script or use /etc/profile as Chris describes. Only have the two paths to the opensrf user's .bashrc.
Perhaps it's only balking that error because they don't have the ssh-key entry setup between head and drones and so it can't locate osrf_ctl.sh on the drones due to failure to connect.
Let us know what you discover Sue.
-- Ben
On May 10, 2011, at 6:59 AM, Sharp, Chris wrote:
> Hi Sue,
>
>> I am having problems getting the brick_ctl.sh script to work. When I
>> issue the command it asked for the password for opensrf on the drones
>> and then says it cannot find osrf_ctl.sh. I put the PERL5Lib and PATH
>> at the beginning of .bashrc file on the drones. I have the /openils on
>> a NFS share from the brick head to the drones. I am running Evergreen
>> 2_1_beta and Opensrf 2_0.Any idea what else I am missing?
>
> For the opensrf password issue, you can take these steps (as opensrf on the head/master server):
>
> ssh-keygen # follow the prompts and choose not to have a passphrase
> ssh-copy-id <drone IP/hostname> # substituting each actual drone IP/hostname without brackets
>
> As for the other issue, brick_ctl.sh has this line:
>
> DRONE_BASE=". /etc/profile && osrf_ctl.sh -d $OSRF_PID_DIR -c $OSRF_CONFIG";
>
> which means that it will ignore opensrf's .bashrc and source /etc/profile instead, which means you should be able to add the PERL5LIB and PATH lines to /etc/profile on each drone, or you could modify brick_ctl.sh to not source /etc/profile (by removing ". /etc/profile &&" from the DRONE_BASE line). There may be a recommended way to do this from Bill or one of the other developers, but those are my techniques. ;-)
>
> Hope that's helpful!
>
> Chris
>
> Chris Sharp
> PINES Program Manager
> Georgia Public Library Service
> 1800 Century Place, Suite 150
> Atlanta, Georgia 30345
> (404) 235-7147
> csharp at georgialibraries.org
> http://pines.georgialibraries.org/
Benjamin Shum
Open Source Software Coordinator
Bibliomation, Inc.
32 Crest Road
Middlebury, CT 06762
203-577-4070, ext. 113
More information about the Open-ils-general
mailing list