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

« back to all changes in this revision

Viewing changes to man/sd_booted.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_booted</title><meta name="generator" content="DocBook XSL Stylesheets V1.76.1"/></head><body><div class="refentry" title="sd_booted"><a id="sd_booted"/><div class="titlepage"/><div class="refnamediv"><h2>Name</h2><p>sd_booted — Test whether the system is running the systemd init system.</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include "sd-daemon.h"</pre><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <strong>fsfuncsd_booted</strong>(</code></td><td>void<code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1" title="Description"><a id="id375119"/><h2>Description</h2><p><code class="function">sd_booted()</code> checks whether
4
 
                the system was booted up using the systemd init system.</p></div><div class="refsect1" title="Return Value"><a id="id375134"/><h2>Return Value</h2><p>On failure, this call returns a negative
 
1
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>sd_booted</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_booted"><a name="sd_booted"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>sd_booted — Test whether the system is running the systemd init system.</p></div><div class="refsynopsisdiv" title="Synopsis"><h2>Synopsis</h2><div class="funcsynopsis"><pre class="funcsynopsisinfo">#include &lt;systemd/sd-daemon.h&gt;</pre><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">int <b class="fsfunc">sd_booted</b>(</code></td><td>void<code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></div></div><div class="refsect1" title="Description"><a name="id278736"></a><h2>Description</h2><p><code class="function">sd_booted()</code> checks whether
 
2
                the system was booted up using the systemd init system.</p></div><div class="refsect1" title="Return Value"><a name="id278750"></a><h2>Return Value</h2><p>On failure, this call returns a negative
5
3
                errno-style error code. If the system was booted up
6
4
                with systemd as init system, this call returns a
7
 
                positive return value, zero otherwise.</p></div><div class="refsect1" title="Notes"><a id="id375146"/><h2>Notes</h2><p>This function is provided by the reference
 
5
                positive return value, zero otherwise.</p></div><div class="refsect1" title="Notes"><a name="id278762"></a><h2>Notes</h2><p>This function is provided by the reference
8
6
                implementation of APIs for new-style daemons and
9
7
                distributed with the systemd package. The algorithm it
10
8
                implements is simple, and can easily be reimplemented
17
15
                <code class="filename">/sys/fs/cgroup</code> and
18
16
                <code class="filename">/sys/fs/cgroup/systemd</code>.</p><p>For details about the algorithm check the
19
17
                liberally licensed reference implementation sources:
20
 
                <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>
21
 
                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><code class="function">sd_booted()</code> is implemented
 
18
                <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>
 
19
                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><code class="function">sd_booted()</code> is implemented
22
20
                in the reference implementation's
23
21
                <code class="filename">sd-daemon.c</code> and
24
22
                <code class="filename">sd-daemon.h</code> files. These
33
31
                <span class="citerefentry"><span class="refentrytitle">sd_daemon</span>(7)</span>.</p><p>If the reference implementation is used as
34
32
                drop-in files and -DDISABLE_SYSTEMD is set during
35
33
                compilation this function will always return 0 and
36
 
                otherwise become a NOP.</p></div><div class="refsect1" title="See Also"><a id="id342602"/><h2>See Also</h2><p>
 
34
                otherwise become a NOP.</p></div><div class="refsect1" title="See Also"><a name="id310991"></a><h2>See Also</h2><p>
37
35
                        <span class="citerefentry"><span class="refentrytitle">systemd</span>(1)</span>,
38
36
                        <span class="citerefentry"><span class="refentrytitle">sd_daemon</span>(7)</span>
39
37
                </p></div></div></body></html>