littlejeem / monitor_scripts

A repository of scripts designed to monitor or oversea functions
GNU General Public License v3.0
0 stars 0 forks source link

script IPChecker.sh - script doesn't act as expected #11

Closed littlejeem closed 4 years ago

littlejeem commented 4 years ago

script runs.

Test condition was to stop OpenVPN, leave transmission-daemon running and run the script.

Result was as follows

script STARTED - 22.25-17_06_2020
/home/pi/bin/monitor_scripts
I would source /home/pi/bin/monitor_scripts/config.sh in real world
VPN is DOWN
Attempting to stop transmission-daemon

Two pushovers received

1: VPN is DOWN followed by 2: failed to successfully 'stop' transmission-daemon, urgent attention required

The expected behaviour was for the first pushover and for the script to stop transmission-daemon.

littlejeem commented 4 years ago

script now runs as expected but exits with

rm: cannot remove '/tmp/IPChecker.lock': No such file or directory
littlejeem commented 4 years ago

script now runs as expected but exits with

rm: cannot remove '/tmp/IPChecker.lock': No such file or directory

fixed by 8872d29ba9423ab750cae554d3a02d9dc70e6571