~ubuntu-branches/debian/jessie/systemd/jessie

« back to all changes in this revision

Viewing changes to man/sd-daemon.html

  • Committer: Package Import Robot
  • Author(s): Tollef Fog Heen, Tollef Fog Heen, Michael Biebl
  • Date: 2012-04-03 19:59:17 UTC
  • mfrom: (1.1.10) (6.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120403195917-l532urrbg4pkreas
Tags: 44-1
[ Tollef Fog Heen ]
* New upstream version.
  - Backport 3492207: journal: PAGE_SIZE is not known on ppc and other
    archs
  - Backport 5a2a2a1: journal: react with immediate rotation to a couple
    of more errors
  - Backport 693ce21: util: never follow symlinks in rm_rf_children()
    Fixes CVE-2012-1174, closes: #664364
* Drop output message from init-functions hook, it's pointless.
* Only rmdir /lib/init/rw if it exists.
* Explicitly order debian-fixup before sysinit.target to prevent a
  possible race condition with the creation of sockets.  Thanks to
  Michael Biebl for debugging this.
* Always restart the initctl socket on upgrades, to mask sysvinit
  removing it.

[ Michael Biebl ]
* Remove workaround for non-interactive sessions from pam config again.
* Create compat /dev/initctl symlink in case we are upgrading from a system
  running a newer version of sysvinit (using /run/initctl) and sysvinit is
  replaced with systemd-sysv during the upgrade. Closes: #663219
* Install new man pages.
* Build-Depend on valac (>= 0.12) instead of valac-0.12. Closes: #663323

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8"?>
2
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3
 
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>sd-daemon</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"/></head><body><div class="refentry" title="sd-daemon"><a id="sd-daemon"/><div class="titlepage"/><div class="refnamediv"><h2>Name</h2><p>sd-daemon — Reference implementation of APIs for
4
 
                new-style daemons</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include "sd-daemon.h"</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd-daemon</code> </p></div></div><div class="refsect1" title="Description"><a id="id470689"/><h2>Description</h2><p><code class="filename">sd-daemon.c</code> and
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>sd-daemon</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" title="sd-daemon"><a name="sd-daemon"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd-daemon — Reference implementation of APIs for
 
2
                new-style daemons</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre></div><div class="cmdsynopsis"><p><code class="command">pkg-config --cflags --libs libsystemd-daemon</code> </p></div></div><div class="refsect1" title="Description"><a name="id535653"></a><h2>Description</h2><p><code class="filename">sd-daemon.c</code> and
5
3
                <code class="filename">sd-daemon.h</code> provide a reference
6
4
                implementation of various APIs for new-style daemons,
7
5
                as implemented by the
34
32
                log level system. To use these prefixes simply prefix
35
33
                every line with one of these strings. A line that is
36
34
                not prefixed will be logged at the default log level
37
 
                SD_INFO.</p><div class="example"><a id="id470798"/><p class="title"><strong>Example 1. Hello World</strong></p><div class="example-contents"><p>A daemon may log with the log level
38
 
                        NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"/></div><div class="refsect1" title="Notes"><a id="id438171"/><h2>Notes</h2><p>These interfaces are provided by the reference
 
35
                SD_INFO.</p><div class="example"><a name="id535762"></a><p class="title"><b>Example 1. Hello World</b></p><div class="example-contents"><p>A daemon may log with the log level
 
36
                        NOTICE by issuing this call:</p><pre class="programlisting">fprintf(stderr, SD_NOTICE "Hello World!\n");</pre></div></div><br class="example-break"></div><div class="refsect1" title="Notes"><a name="id567907"></a><h2>Notes</h2><p>These interfaces are provided by the reference
39
37
                implementation of APIs for new-style daemons and
40
38
                distributed with the systemd package. The algorithms
41
39
                they implement are simple, and can easily be
45
43
                for details.</p><p>In addition, for details about the algorithms
46
44
                check the liberally licensed reference implementation
47
45
                sources:
48
 
                <a class="ulink" href="http://cgit.freedesktop.org/systemd/tree/src/sd-daemon.c">http://cgit.freedesktop.org/systemd/tree/src/sd-daemon.c</a>
49
 
                resp. <a class="ulink" href="http://cgit.freedesktop.org/systemd/tree/src/sd-daemon.h">http://cgit.freedesktop.org/systemd/tree/src/sd-daemon.h</a></p><p>These APIs are implemented in the reference
 
46
                <a class="ulink" href="http://cgit.freedesktop.org/systemd/systemd/plain/src/sd-daemon.c" target="_top">http://cgit.freedesktop.org/systemd/systemd/plain/src/sd-daemon.c</a>
 
47
                resp. <a class="ulink" href="http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-daemon.h" target="_top">http://cgit.freedesktop.org/systemd/systemd/plain/src/systemd/sd-daemon.h</a></p><p>These APIs are implemented in the reference
50
48
                implementation's <code class="filename">sd-daemon.c</code> and
51
49
                <code class="filename">sd-daemon.h</code> files. These
52
50
                interfaces are available as shared library, which can
60
58
                during compilation and the reference implementation is
61
59
                used as drop-in files. In addition, if
62
60
                <code class="filename">sd-daemon.c</code> is compiled on
63
 
                non-Linux systems they become NOPs.</p></div><div class="refsect1" title="See Also"><a id="id438239"/><h2>See Also</h2><p>
 
61
                non-Linux systems they become NOPs.</p></div><div class="refsect1" title="See Also"><a name="id567974"></a><h2>See Also</h2><p>
64
62
                        <span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span>,
65
63
                        <span class="citerefentry"><span class="refentrytitle">sd_listen_fds</span>(3)</span>,
66
64
                        <span class="citerefentry"><span class="refentrytitle">sd_notify</span>(3)</span>,