Fixed issue on rc.d files