Hi noeska...

If you're using Lazarus theres a package you can install called lazdaemon. You'll find it in the available packages list in the "Configure packages" dialog. This'll give you a nice template that you can use when creating a new project.