Restart syslog if it was previously configured
@@ -45,7 +45,10 @@ chown -R vcap:vcap "${HEALTHCHECK_LOG_DIR}"
# Start syslog forwarding
/var/vcap/packages/syslog_aggregator/setup_syslog_forwarder.sh $MARIADB_JOB_DIR/config
<% end.else do %>
+if [[ -e /etc/rsyslog.d/00-syslog_forwarder.conf ]]; then
rm -f /etc/rsyslog.d/00-syslog_forwarder.conf
+ /usr/sbin/service rsyslog restart
+fi
<% end %>
# It is surprisingly hard to get the config file location passed in
