override init script to fix bug regarding service resource