switch init.d file from file to template