monitor icon indicating copy to clipboard operation
monitor copied to clipboard

Reboot comand persistance

Open stanleygreenwood opened this issue 4 years ago • 2 comments

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

stanleygreenwood avatar Jan 19 '21 09:01 stanleygreenwood

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

sajovicd avatar Jan 27 '21 18:01 sajovicd

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

hack2spider avatar Jan 30 '21 02:01 hack2spider