Fixed init scripts to wait for shutdown on restart
Merge pull request #293 from dswd/fix-init-scripts

Fixed init scripts to wait for shutdown on restart