<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">help: Configure syslog daemon
end: if [ -n "$VAR(./global/facility/@@)" ]; then
      # remove the default config for global messages
	sudo sh -c "sed -i '/\*\.notice[[:space:]]*-\/var\/log\/messages/d' /etc/syslog.conf"
     else
      # if not already there then write the default config for global messages
      if ! grep -q "\*\.notice[[:space:]]*-/var/log/messages" /etc/syslog.conf; then
	sudo sh -c "echo \"*.notice                -/var/log/messages\" &gt;&gt; /etc/syslog.conf"
      fi
     fi
     sudo /usr/sbin/invoke-rc.d sysklogd restart
</pre></body></html>