sysom1/script/server/sysom_log/clear.sh

15 lines
278 B
Bash

#!/bin/bash
BaseDir=$(dirname $(readlink -f "$0"))
SERVICE_NAME=sysom-log
clear_app() {
rm -rf /etc/supervisord.d/${SERVICE_NAME}.ini
###use supervisorctl update to stop and clear services###
supervisorctl update
}
# Stop first
bash -x $BaseDir/stop.sh
clear_app