monitor
monitor copied to clipboard
Reboot comand persistance
Hi,
Andrew mentions how he has configured his PI devices(nodes) differently using the bash commands "sudo bash monitor.sh -tr" and "sudo bash monitor.sh -tad"
I would like to know if running these commands persist after a node reboot or do you have to reconfigure the systemctl monitor service somewhere in a log.
Thank you, Stan
I found the command :)
At the end just add -u that will put bash command to monitor.service So I used sudo bash monitor.sh -tdr -a -b -u for the main unit-node
just type sudo systemctl enable monitor.service sudo systemctl daemon-reload sudo systemctl start monitor
also if you want to edit monitor.service you go sudo nano /etc/systemd/system/monitor.service add whatever you want to add -tad -a -b before the end sign .. ctrl+X enter
and you will get same string in the monitor.service on every reboot ..
to confirm you can do a sudo systemctl status monitor after a reboot and it will show the exact string