install.sh 256 B

12345678910111213
  1. #!/bin/bash
  2. cp monitor.service /etc/systemd/system/monitor.service
  3. systemctl daemon-reload
  4. systemctl enable monitor
  5. # disable log to syslog
  6. cp 30-monitor.conf /etc/rsyslog.d/30-monitor.conf
  7. systemctl restart rsyslog
  8. # restart
  9. systemctl restart monitor