script to generate RPM init.d files from templates