CLC-2420 Smarten up the stop script; go into maint mode from upgrade.sh
CLC-2420 More script tweaks as suggested by Darlene
Merge pull request #1538 from ctweney/clc-2420

CLC-2420 Improving the start/stop scripts