Creating a templete for the daemon