added a check for syslog and rsyslog before stopping those services