title: systemd (new style) daemon in C/C++
body: <p>On the Internet there are multiple code example which explains how to write the old style daemon in pure C or even in C++.</p>
  <p>However, there is no such thing for a &quot;new style&quot; (or systemd one).</p>
  <p>Is there a basic &quot;simple daemon&quot; code I can re-use to write a &quot;new style&quot; systemd daemon in C/C++?</p>