Implement service initialization in lahstdio
Minor fix and reformat