#!/bin/bash

cp monitor.service /etc/systemd/system/monitor.service
systemctl daemon-reload
systemctl enable monitor


# disable log to syslog
cp 30-monitor.conf /etc/rsyslog.d/30-monitor.conf
systemctl restart rsyslog

# restart
systemctl restart monitor
