better rc.d script