Added safety preflight to avoid accidentally running on an existing
server. Running on a server with existing data (as determined by
whether the 'change' counter is 0) now requires using a '-f' (force)
option.
This entailed adding standard command line processing that comes from
the the Coding Standard for Bash. The Coding Standard also provides
more standard logging functionality. Moving to the coding standard
entailed moving away from key dependencies in backup_functions.sh();
e.g. the 'log()' and 'die()' functions were replaced with simpler
'msg()' and 'bail()' -- this greatly increases logging reliability.
Added a new library /p4/common/lib/service_management.lib.
This conversion to the Coding Standard for Bash is a preview of
future changes needed by legacy scripts like live_checkpoint.sh
and daily_checkpoint.sh, etc.
As part of this change, the definition of OFFLINE_DB has been moved
from backup_functions.sh to p4_vars, aligning it with other
fixed-by-standards paths are defined.