added support for init.d