<para>A service could send the following after completing
initialization:</para>
- <programlisting>sd_notifyf(0, "READY=1\n"
- "STATUS=Processing requests…\n"
- "MAINPID=%lu",
- (unsigned long) getpid());</programlisting>
+ <programlisting>
+sd_notifyf(0, "READY=1\n"
+ "STATUS=Processing requests…\n"
+ "MAINPID=%lu",
+ (unsigned long) getpid());</programlisting>
</example>
<example>
<para>A service could send the following shortly before exiting, on failure:</para>
- <programlisting>sd_notifyf(0, "STATUS=Failed to start up: %s\n"
- "ERRNO=%i",
- strerror_r(errnum, (char[1024]){}, 1024),
- errnum);</programlisting>
+ <programlisting>
+sd_notifyf(0, "STATUS=Failed to start up: %s\n"
+ "ERRNO=%i",
+ strerror_r(errnum, (char[1024]){}, 1024),
+ errnum);</programlisting>
</example>
<example>
to synchronize against reception of all notifications sent before
this call is made.</para>
- <programlisting>sd_notify(0, "READY=1");
- /* set timeout to 5 seconds */
- sd_notify_barrier(0, 5 * 1000000);
+ <programlisting>
+sd_notify(0, "READY=1");
+/* set timeout to 5 seconds */
+sd_notify_barrier(0, 5 * 1000000);
</programlisting>
</example>
</refsect1>