put lock file into a variable.
fix detection of instance out of service too long.
add a debug log.
test multi words in the systemError function.
add the missing options into the script.
create function to detect if boot is complete.
abort of boot is not complete.
cleanup unused functions.
add functions for sending email.
send emails where needed.
re-prime the data on each iteration.