make it work with rc.d or whatever