# MONITOR ## build ```bash make BUILD_TYPE=Debug ``` ## deploy ```bash make deploy BUILD_TYPE=Debug ADDR=192.168.1.15 ``` ## configure autostart ```bash cp conf/monitor.desktop ~/.config/autostart/monitor.desktop ``` ## configure systemd (recommend) ```bash cp conf/monitor.service /etc/systemd/system/monitor.service ``` ### enabled ```bash systemctl daemon-reload systemctl enable --now monitor systemctl status monitor ``` ### disable log to syslog - `/etc/rsyslog.d/30-monitor.conf` - `systemctl restart rsyslog` ``` if ($programname == 'monitor') or ($systemdunit == 'monitor.service') then stop ```