Remove syslog when it is disabled
@@ -44,6 +44,8 @@ chown -R vcap:vcap "${HEALTHCHECK_LOG_DIR}"
<% if_p("syslog_aggregator.address", "syslog_aggregator.port", "syslog_aggregator.transport") do %>
# Start syslog forwarding
/var/vcap/packages/syslog_aggregator/setup_syslog_forwarder.sh $MARIADB_JOB_DIR/config
+<% end.else do %>
+rm -f /etc/rsyslog.d/00-syslog_forwarder.conf
<% end %>
# It is surprisingly hard to get the config file location passed in
