Fixes init script start and stop functions.