remove option to reopen Mistral logfiles
@@ -34,7 +34,7 @@ function print_usage() {
echo "Usage: st2ctl {reopen-log-files}"
echo "positional arguments:"
echo " component Name of the st2 service to reopen the log files for."
- echo " ${COMPONENTS}"
+ echo " ${COMPONENTS/mistral}"
echo
echo "Usage: st2ctl {reload, clean}"
echo "optional arguments:"
@@ -116,6 +116,11 @@ function service_manager() {
function reopen_component_log_files() {
COM=${1}
+ if [[ "$COM" == "mistral" ]]; then
+ echo "Sorry, Mistral does not yet support gracefully reopening log files"
+ return 1
+ fi
+
PID=`ps ax | grep -v grep | grep -v st2ctl | grep "${COM}" | awk '{print $1}'`
if [[ ! -z ${PID} ]]; then
for p in ${PID}; do
