Changeset 37161


Ignore:
Timestamp:
2023-01-19T10:44:48+13:00 (8 days ago)
Author:
davidb
Message:

Weaving in the ability to have custom scripts to start and stop Greenstone3

Location:
main/trunk/greenstone3/service.d
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/service.d/greenstone3-start.sh

    r36483 r37161  
    66full_parentdir=${full_progdir%/*}
    77
    8 cd "$full_parentdir" && . ./gs3-setup-cli.sh && . ./gs3-setup.sh && ant start
     8cd "$full_parentdir" \
     9    && if [ -f SETUP.bash ] ; then . ./SETUP.bash ; else . ./gs3-setup-cli.sh  && . ./gs3-setup.sh ; fi \
     10    && if [ -f ANT-START-CUSTOM.sh ] ; then ./ANT-START-CUSTOM.sh ; else ant start ; fi
    911
  • main/trunk/greenstone3/service.d/greenstone3-stop.sh

    r36483 r37161  
    66full_parentdir=${full_progdir%/*}
    77
    8 cd "$full_parentdir" && . ./gs3-setup-cli.sh && . ./gs3-setup.sh && ant stop
     8cd "$full_parentdir" \
     9    && if [ -f SETUP.bash ] ; then . ./SETUP.bash ; else . ./gs3-setup-cli.sh  && . ./gs3-setup.sh ; fi \
     10    && if [ -f ANT-STOP-CUSTOM.sh ] ; then ./ANT-STOP-CUSTOM.sh ; else ant stop ; fi
    911
    10 
Note: See TracChangeset for help on using the changeset viewer.