Rather than register another system event trigger for gracefully shutting down, enhance stopService to wait for db initialization to complete.
Rather than register another system event trigger for gracefully shutting down, enhance stopService to wait for db initialization to complete.


git-svn-id: 0c33e958600270102f91bf5868e396345dde476c@6427 e27351fd-9f3e-4f54-a53b-843176b1656c

red-hood/calendarserver,red-hood/calendarserver,red-hood/calendarserver,red-hood/calendarserver,red-hood/calendarserver,red-hood/calendarserver