Two years ago I created an example Linux daemon service. Why not turn it into a library?
I just created wordptr.libwpd.
NOTE! As of 2012-11-28 it’s not a library, yet! I took the code I created for the exsvcd project and created a brand new project on GitHub:
Over the next few days, I’ll turn it into a simple, configurable daemon library project.
There’s lots of work to do, yet, and it’s pretty rough around the edges.
But there it is.
Why not simply use daemon(3)? Go for it. Seriously. Eventually, I’ll extend the wordptr.libwpd library with additional configuration and extensibility hooks. But it’s a long, long way from mature. Use daemon(3) if you need a mature solution.