Maintenance Mode - Scrypt?

it has been asked often but why does it go into maintenance mode with the only fix to edit config.php to change flag from true to false? is there anything else to prevent this in the future? or a script to check and make the change?

Try to use the occ command line tool to check the maintenance status or enable/disable it.

@SecureCodeJIT
see this : Using the occ command — Nextcloud latest Administration Manual latest documentation

you must execute the occ commands when you are inside your nextcloud server directory