if [ -f "/etc/http-server-status/config.yml" ]; then echo "Config exists" else cp /etc/http-server-status/config.yml.sample /etc/http-server-status/config.yml fi systemctl daemon-reload STATUS="$(systemctl is-active tomcat.service)" if [ "${STATUS}" = "active" ]; then systemctl restart http-server-status echo "Restart Service" fi