adding /etc/init.d/$name link 

This means /etc/bash_complition can find it too