Skip to content
Permalink
4.17.5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
@mchyzer
Latest commit 49b6c13 Nov 28, 2023 History
1 contributor

Users who have contributed to this file

43 lines (33 sloc) 1.3 KB
#!/bin/bash
runCommand() {
echo "grouperContainer; INFO: (libraryRunCommand.sh-runCommand) Start setting up remaining pipes"
setupPipe_httpdLog
setupPipe_shibdLog
setupPipe_tomcatLog
setupPipe_tomcatAccessLog
echo "grouperContainer; INFO: (libraryRunCommand.sh-runCommand) End setting up remainder pipes"
runCommand_unsetAll
if [ "$GROUPER_RUN_TOMCAT_NOT_SUPERVISOR" = "true" ]; then
if [ "$GROUPER_RUN_PROCESSES_AS_USERS" = "true" ]; then
echo "grouperContainer; INFO: (libraryRunCommand.sh-runCommand) Starting tomcat: sudo --preserve-env -u tomcat /opt/tomcat/bin/catalina.sh run"
sudo --preserve-env -u tomcat /opt/tomcat/bin/catalina.sh run
else
echo "grouperContainer; INFO: (libraryRunCommand.sh-runCommand) Starting tomcat: /opt/tomcat/bin/catalina.sh run"
/opt/tomcat/bin/catalina.sh run
fi
else
echo "grouperContainer; INFO: (libraryRunCommand.sh-runCommand) Starting supervisor: exec /usr/bin/supervisord -c /opt/tier-support/supervisord.conf"
exec /usr/bin/supervisord -c /opt/tier-support/supervisord.conf
fi
}
runCommand_unsetAll() {
setupPipe_unsetAll
unset -f runCommand
unset -f runCommand_unsetAll
}
runCommand_exportAll() {
export -f runCommand
export -f runCommand_unsetAll
}
# export everything
runCommand_exportAll