init script updated to support stopping