added chowns for repo as appropriate, patched init.d script