Compare commits
15 Commits
d2a56598d0
...
3db7d5d2bf
Author | SHA1 | Date |
---|---|---|
Yu Watanabe | 3db7d5d2bf | |
Yu Watanabe | e681a2ee4d | |
Lennart Poettering | 0bca283127 | |
Jan Tojnar | 88eb051972 | |
Lennart Poettering | 806c6a5b97 | |
Lennart Poettering | 3aebd9d6dd | |
Lennart Poettering | c31469e2ee | |
Lennart Poettering | 2275b74741 | |
Lennart Poettering | 870a2d85d0 | |
Lennart Poettering | 5a5bd9f7e0 | |
Lennart Poettering | d58b613bbb | |
Lennart Poettering | 6831520b02 | |
Lennart Poettering | d18df32d82 | |
Lennart Poettering | 6f63c5b8b1 | |
Lennart Poettering | 37a92352d6 |
|
@ -437,6 +437,7 @@ manpages = [
|
||||||
'SD_EVENT_ONESHOT',
|
'SD_EVENT_ONESHOT',
|
||||||
'sd_event_source_get_enabled'],
|
'sd_event_source_get_enabled'],
|
||||||
''],
|
''],
|
||||||
|
['sd_event_source_set_floating', '3', ['sd_event_source_get_floating'], ''],
|
||||||
['sd_event_source_set_prepare', '3', [], ''],
|
['sd_event_source_set_prepare', '3', [], ''],
|
||||||
['sd_event_source_set_priority',
|
['sd_event_source_set_priority',
|
||||||
'3',
|
'3',
|
||||||
|
@ -735,7 +736,7 @@ manpages = [
|
||||||
['systemd-growfs',
|
['systemd-growfs',
|
||||||
'systemd-growfs@.service',
|
'systemd-growfs@.service',
|
||||||
'systemd-makefs',
|
'systemd-makefs',
|
||||||
'systemd-makeswap@.service'],
|
'systemd-mkswap@.service'],
|
||||||
''],
|
''],
|
||||||
['systemd-modules-load.service', '8', ['systemd-modules-load'], 'HAVE_KMOD'],
|
['systemd-modules-load.service', '8', ['systemd-modules-load'], 'HAVE_KMOD'],
|
||||||
['systemd-mount', '1', ['systemd-umount'], ''],
|
['systemd-mount', '1', ['systemd-umount'], ''],
|
||||||
|
|
|
@ -213,6 +213,7 @@
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_source_set_floating</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>waitid</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
<citerefentry project='man-pages'><refentrytitle>waitid</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
|
@ -183,6 +183,7 @@
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_source_set_floating</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_exit</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>sd_event_exit</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
|
@ -183,6 +183,7 @@
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_source_set_floating</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>waitid</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
<citerefentry project='man-pages'><refentrytitle>waitid</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
|
@ -296,6 +296,7 @@
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_get_pending</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_get_pending</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_source_set_floating</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>epoll_ctl</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
|
<citerefentry project='man-pages'><refentrytitle>epoll_ctl</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>epoll</refentrytitle><manvolnum>7</manvolnum></citerefentry>
|
<citerefentry project='man-pages'><refentrytitle>epoll</refentrytitle><manvolnum>7</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -187,6 +187,7 @@
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_enabled</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_enabled</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_source_set_floating</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>signal</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
<citerefentry project='man-pages'><refentrytitle>signal</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>signalfd</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
<citerefentry project='man-pages'><refentrytitle>signalfd</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
||||||
</para>
|
</para>
|
||||||
|
|
|
@ -278,6 +278,7 @@
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_userdata</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_source_set_floating</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>clock_gettime</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
|
<citerefentry project='man-pages'><refentrytitle>clock_gettime</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>timerfd_create</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
|
<citerefentry project='man-pages'><refentrytitle>timerfd_create</refentrytitle><manvolnum>2</manvolnum></citerefentry>,
|
||||||
<citerefentry project='man-pages'><refentrytitle>prctl</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
<citerefentry project='man-pages'><refentrytitle>prctl</refentrytitle><manvolnum>2</manvolnum></citerefentry>
|
||||||
|
|
|
@ -0,0 +1,118 @@
|
||||||
|
<?xml version='1.0'?>
|
||||||
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
||||||
|
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
|
||||||
|
<!-- SPDX-License-Identifier: LGPL-2.1+ -->
|
||||||
|
|
||||||
|
<refentry id="sd_event_source_set_floating" xmlns:xi="http://www.w3.org/2001/XInclude">
|
||||||
|
|
||||||
|
<refentryinfo>
|
||||||
|
<title>sd_event_source_set_floating</title>
|
||||||
|
<productname>systemd</productname>
|
||||||
|
</refentryinfo>
|
||||||
|
|
||||||
|
<refmeta>
|
||||||
|
<refentrytitle>sd_event_source_set_floating</refentrytitle>
|
||||||
|
<manvolnum>3</manvolnum>
|
||||||
|
</refmeta>
|
||||||
|
|
||||||
|
<refnamediv>
|
||||||
|
<refname>sd_event_source_set_floating</refname>
|
||||||
|
<refname>sd_event_source_get_floating</refname>
|
||||||
|
|
||||||
|
<refpurpose>Set or retrieve 'floating' state of event sources</refpurpose>
|
||||||
|
</refnamediv>
|
||||||
|
|
||||||
|
<refsynopsisdiv>
|
||||||
|
<funcsynopsis>
|
||||||
|
<funcsynopsisinfo>#include <systemd/sd-event.h></funcsynopsisinfo>
|
||||||
|
|
||||||
|
<funcprototype>
|
||||||
|
<funcdef>int <function>sd_event_source_set_floating</function></funcdef>
|
||||||
|
<paramdef>sd_event_source *<parameter>source</parameter></paramdef>
|
||||||
|
<paramdef>int <parameter>floating</parameter></paramdef>
|
||||||
|
</funcprototype>
|
||||||
|
|
||||||
|
<funcprototype>
|
||||||
|
<funcdef>int <function>sd_event_source_get_floating</function></funcdef>
|
||||||
|
<paramdef>sd_event_source *<parameter>source</parameter></paramdef>
|
||||||
|
</funcprototype>
|
||||||
|
|
||||||
|
</funcsynopsis>
|
||||||
|
</refsynopsisdiv>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Description</title>
|
||||||
|
|
||||||
|
<para><function>sd_event_source_set_floating()</function> takes a boolean and sets the 'floating' state
|
||||||
|
of the specified event source object. This is used to change the direction of reference counts for the
|
||||||
|
object and the event loop it is associated with. In non-floating mode, the event source object holds a
|
||||||
|
reference to the event loop object, but not vice versa. The creator of the event source object must hold
|
||||||
|
a reference to it as long as the source should exist. In floating mode, the event loop holds a reference
|
||||||
|
to the source object, and will decrease the reference count when being freed. This means that a reference
|
||||||
|
to the event loop should be held to prevent both from being destroyed.</para>
|
||||||
|
|
||||||
|
<para>Various calls that allocate event source objects (i.e.
|
||||||
|
<citerefentry><refentrytitle>sd_event_add_io</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_add_time</refentrytitle><manvolnum>3</manvolnum></citerefentry> and
|
||||||
|
similar) will automatically set an event source object to 'floating' mode if the caller passed
|
||||||
|
<constant>NULL</constant> in the parameter used to return a reference to the event source object.
|
||||||
|
Nevertheless, it may be necessary to gain temporary access to the source object, for example to adjust
|
||||||
|
event source properties after allocation (e.g. its priority or description string). In those cases the
|
||||||
|
object may be created in non-floating mode, and the returned reference used to adjust the properties, and
|
||||||
|
the object marked as floating afterwards, and the reference in the caller dropped.</para>
|
||||||
|
|
||||||
|
<para><function>sd_event_source_get_floating()</function> may be used to query the current 'floating'
|
||||||
|
state of the event source object <parameter>source</parameter>. It returns zero if 'floating' mode is
|
||||||
|
off, positive if it is on.</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>Return Value</title>
|
||||||
|
|
||||||
|
<para>On success, <function>sd_event_source_set_floating()</function> and
|
||||||
|
<function>sd_event_source_get_floating()</function> return a non-negative integer. On failure, they
|
||||||
|
return a negative errno-style error code.</para>
|
||||||
|
|
||||||
|
<refsect2>
|
||||||
|
<title>Errors</title>
|
||||||
|
|
||||||
|
<para>Returned errors may indicate the following problems:</para>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<varlistentry>
|
||||||
|
<term><constant>-EINVAL</constant></term>
|
||||||
|
|
||||||
|
<listitem><para><parameter>source</parameter> is not a valid pointer to an
|
||||||
|
<structname>sd_event_source</structname> object.</para></listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><constant>-ECHILD</constant></term>
|
||||||
|
|
||||||
|
<listitem><para>The event loop has been created in a different process.</para></listitem>
|
||||||
|
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
</variablelist>
|
||||||
|
</refsect2>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
<xi:include href="libsystemd-pkgconfig.xml" />
|
||||||
|
|
||||||
|
<refsect1>
|
||||||
|
<title>See Also</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<citerefentry><refentrytitle>sd-event</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_add_io</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_add_time</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_add_signal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_add_child</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_add_inotify</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_add_defer</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_source_set_description</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>sd_event_source_set_priority</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
||||||
|
</para>
|
||||||
|
</refsect1>
|
||||||
|
|
||||||
|
</refentry>
|
|
@ -193,9 +193,9 @@
|
||||||
<para>
|
<para>
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd-journal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd-journal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_journal_next</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd_journal_get_data</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd_journal_get_data</refentrytitle><manvolnum>3</manvolnum></citerefentry>
|
||||||
<citerefentry><refentrytitle>systemd-machined</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
||||||
</para>
|
</para>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
|
|
|
@ -136,36 +136,30 @@ systemd-tmpfiles --create --prefix /var/log/journal</programlisting>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>SIGUSR1</term>
|
<term>SIGUSR1</term>
|
||||||
|
|
||||||
<listitem><para>Request that journal data from
|
<listitem><para>Request that journal data from <filename>/run/</filename> is flushed to
|
||||||
<filename>/run/</filename> is flushed to
|
<filename>/var/</filename> in order to make it persistent (if this is enabled). This must be used
|
||||||
<filename>/var/</filename> in order to make it persistent (if
|
after <filename>/var/</filename> is mounted, as otherwise log data from <filename>/run</filename> is
|
||||||
this is enabled). This must be used after
|
never flushed to <filename>/var</filename> regardless of the configuration. Use the
|
||||||
<filename>/var/</filename> is mounted, as otherwise log data
|
<command>journalctl --flush</command> command to request flushing of the journal files, and wait for
|
||||||
from <filename>/run</filename> is never flushed to
|
|
||||||
<filename>/var</filename> regardless of the configuration. The
|
|
||||||
<command>journalctl --flush</command> command uses this signal
|
|
||||||
to request flushing of the journal files, and then waits for
|
|
||||||
the operation to complete. See
|
the operation to complete. See
|
||||||
<citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
<citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry> for
|
||||||
for details.</para></listitem>
|
details.</para></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>SIGUSR2</term>
|
<term>SIGUSR2</term>
|
||||||
|
|
||||||
<listitem><para>Request immediate rotation of the journal
|
<listitem><para>Request immediate rotation of the journal files. Use the <command>journalctl
|
||||||
files. The <command>journalctl --rotate</command> command uses
|
--rotate</command> command to request journal file rotation, and wait for the operation to
|
||||||
this signal to request journal file
|
complete.</para></listitem>
|
||||||
rotation.</para></listitem>
|
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term>SIGRTMIN+1</term>
|
<term>SIGRTMIN+1</term>
|
||||||
|
|
||||||
<listitem><para>Request that all unwritten log data is written
|
<listitem><para>Request that all unwritten log data is written to disk. Use the <command>journalctl
|
||||||
to disk. The <command>journalctl --sync</command> command uses
|
--sync</command> command to trigger journal synchronization, and wait for the operation to
|
||||||
this signal to trigger journal synchronization, and then waits
|
complete.</para></listitem>
|
||||||
for the operation to complete.</para></listitem>
|
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
<refnamediv>
|
<refnamediv>
|
||||||
<refname>systemd-makefs@.service</refname>
|
<refname>systemd-makefs@.service</refname>
|
||||||
<refname>systemd-makeswap@.service</refname>
|
<refname>systemd-mkswap@.service</refname>
|
||||||
<refname>systemd-growfs@.service</refname>
|
<refname>systemd-growfs@.service</refname>
|
||||||
<refname>systemd-makefs</refname>
|
<refname>systemd-makefs</refname>
|
||||||
<refname>systemd-growfs</refname>
|
<refname>systemd-growfs</refname>
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
<refsynopsisdiv>
|
<refsynopsisdiv>
|
||||||
<para><filename>systemd-makefs@<replaceable>device</replaceable>.service</filename></para>
|
<para><filename>systemd-makefs@<replaceable>device</replaceable>.service</filename></para>
|
||||||
<para><filename>systemd-makeswap@<replaceable>device</replaceable>.service</filename></para>
|
<para><filename>systemd-mkswap@<replaceable>device</replaceable>.service</filename></para>
|
||||||
<para><filename>systemd-growfs@<replaceable>mountpoint</replaceable>.service</filename></para>
|
<para><filename>systemd-growfs@<replaceable>mountpoint</replaceable>.service</filename></para>
|
||||||
<para><filename>/usr/lib/systemd/systemd-makefs</filename></para>
|
<para><filename>/usr/lib/systemd/systemd-makefs</filename></para>
|
||||||
<para><filename>/usr/lib/systemd/systemd-growfs</filename></para>
|
<para><filename>/usr/lib/systemd/systemd-growfs</filename></para>
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
<title>Description</title>
|
<title>Description</title>
|
||||||
|
|
||||||
<para><filename>systemd-makefs@.service</filename>,
|
<para><filename>systemd-makefs@.service</filename>,
|
||||||
<filename>systemd-makeswap@.service</filename>, and
|
<filename>systemd-mkswap@.service</filename>, and
|
||||||
<filename>systemd-growfs@.service</filename> are used to implement the
|
<filename>systemd-growfs@.service</filename> are used to implement the
|
||||||
<option>x-systemd.makefs</option> and <option>x-systemd.growfs</option> options
|
<option>x-systemd.makefs</option> and <option>x-systemd.growfs</option> options
|
||||||
in <citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
in <citerefentry project='man-pages'><refentrytitle>fstab</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||||
|
|
|
@ -2041,7 +2041,7 @@ SystemCallErrorNumber=EPERM</programlisting>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>StandardOutput=</varname></term>
|
<term><varname>StandardOutput=</varname></term>
|
||||||
|
|
||||||
<listitem><para>Controls where file descriptor 1 (STDOUT) of the executed processes is connected
|
<listitem><para>Controls where file descriptor 1 (stdout) of the executed processes is connected
|
||||||
to. Takes one of <option>inherit</option>, <option>null</option>, <option>tty</option>,
|
to. Takes one of <option>inherit</option>, <option>null</option>, <option>tty</option>,
|
||||||
<option>journal</option>, <option>kmsg</option>, <option>journal+console</option>,
|
<option>journal</option>, <option>kmsg</option>, <option>journal+console</option>,
|
||||||
<option>kmsg+console</option>, <option>file:<replaceable>path</replaceable></option>,
|
<option>kmsg+console</option>, <option>file:<replaceable>path</replaceable></option>,
|
||||||
|
@ -2117,7 +2117,7 @@ SystemCallErrorNumber=EPERM</programlisting>
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>StandardError=</varname></term>
|
<term><varname>StandardError=</varname></term>
|
||||||
|
|
||||||
<listitem><para>Controls where file descriptor 2 (STDERR) of the executed processes is connected to. The
|
<listitem><para>Controls where file descriptor 2 (stderr) of the executed processes is connected to. The
|
||||||
available options are identical to those of <varname>StandardOutput=</varname>, with some exceptions: if set to
|
available options are identical to those of <varname>StandardOutput=</varname>, with some exceptions: if set to
|
||||||
<option>inherit</option> the file descriptor used for standard output is duplicated for standard error, while
|
<option>inherit</option> the file descriptor used for standard output is duplicated for standard error, while
|
||||||
<option>fd:<replaceable>name</replaceable></option> will use a default file descriptor name of
|
<option>fd:<replaceable>name</replaceable></option> will use a default file descriptor name of
|
||||||
|
|
|
@ -23,14 +23,13 @@
|
||||||
<refsect1>
|
<refsect1>
|
||||||
<title>Description</title>
|
<title>Description</title>
|
||||||
|
|
||||||
<para>Entries in the journal resemble an environment block in
|
<para>Entries in the journal (as written by
|
||||||
their syntax but with fields that can include binary data.
|
<citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>)
|
||||||
Primarily, fields are formatted UTF-8 text strings, and binary
|
resemble a UNIX process environment block in syntax but with fields that may include binary data.
|
||||||
formatting is used only where formatting as UTF-8 text strings
|
Primarily, fields are formatted UTF-8 text strings, and binary encoding is used only where formatting as
|
||||||
makes little sense. New fields may freely be defined by
|
UTF-8 text strings makes little sense. New fields may freely be defined by applications, but a few fields
|
||||||
applications, but a few fields have special meaning. All fields
|
have special meanings. All fields with special meanings are optional. In some cases, fields may appear
|
||||||
with special meanings are optional. In some cases, fields may
|
more than once per entry.</para>
|
||||||
appear more than once per entry.</para>
|
|
||||||
</refsect1>
|
</refsect1>
|
||||||
|
|
||||||
<refsect1>
|
<refsect1>
|
||||||
|
@ -542,6 +541,7 @@
|
||||||
<title>See Also</title>
|
<title>See Also</title>
|
||||||
<para>
|
<para>
|
||||||
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
|
<citerefentry><refentrytitle>systemd-journald.service</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>journald.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>journald.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
|
||||||
<citerefentry><refentrytitle>sd-journal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
<citerefentry><refentrytitle>sd-journal</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
|
||||||
|
|
|
@ -1373,8 +1373,8 @@
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><varname>IPServiceType=</varname></term>
|
<term><varname>IPServiceType=</varname></term>
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Takes string; "CS6" or "CS4". Used to set IP service type to CS6 (network control)
|
<para>Takes string; <literal>CS6</literal> or <literal>CS4</literal>. Used to set IP
|
||||||
or CS4 (Realtime). IPServiceType defaults to CS6 if nothing is specified.</para>
|
service type to CS6 (network control) or CS4 (Realtime). Defaults to CS6.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
|
@ -843,7 +843,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||||
#else
|
#else
|
||||||
case 'g':
|
case 'g':
|
||||||
case ARG_CASE_SENSITIVE:
|
case ARG_CASE_SENSITIVE:
|
||||||
return log_error("Compiled without pattern matching support");
|
return log_error_errno(SYNTHETIC_ERRNO(EOPNOTSUPP), "Compiled without pattern matching support");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case 'S':
|
case 'S':
|
||||||
|
@ -2668,7 +2668,6 @@ int main(int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
finish:
|
finish:
|
||||||
fflush(stdout);
|
|
||||||
pager_close();
|
pager_close();
|
||||||
|
|
||||||
strv_free(arg_file);
|
strv_free(arg_file);
|
||||||
|
|
|
@ -1115,7 +1115,6 @@ void server_dispatch_message(
|
||||||
}
|
}
|
||||||
|
|
||||||
int server_flush_to_var(Server *s, bool require_flag_file) {
|
int server_flush_to_var(Server *s, bool require_flag_file) {
|
||||||
sd_id128_t machine;
|
|
||||||
sd_journal *j = NULL;
|
sd_journal *j = NULL;
|
||||||
char ts[FORMAT_TIMESPAN_MAX];
|
char ts[FORMAT_TIMESPAN_MAX];
|
||||||
usec_t start;
|
usec_t start;
|
||||||
|
@ -1142,10 +1141,6 @@ int server_flush_to_var(Server *s, bool require_flag_file) {
|
||||||
|
|
||||||
start = now(CLOCK_MONOTONIC);
|
start = now(CLOCK_MONOTONIC);
|
||||||
|
|
||||||
r = sd_id128_get_machine(&machine);
|
|
||||||
if (r < 0)
|
|
||||||
return r;
|
|
||||||
|
|
||||||
r = sd_journal_open(&j, SD_JOURNAL_RUNTIME_ONLY);
|
r = sd_journal_open(&j, SD_JOURNAL_RUNTIME_ONLY);
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_error_errno(r, "Failed to read runtime journal: %m");
|
return log_error_errno(r, "Failed to read runtime journal: %m");
|
||||||
|
|
|
@ -114,8 +114,6 @@ struct Server {
|
||||||
unsigned n_forward_syslog_missed;
|
unsigned n_forward_syslog_missed;
|
||||||
usec_t last_warn_forward_syslog_missed;
|
usec_t last_warn_forward_syslog_missed;
|
||||||
|
|
||||||
uint64_t var_available_timestamp;
|
|
||||||
|
|
||||||
usec_t max_retention_usec;
|
usec_t max_retention_usec;
|
||||||
usec_t max_file_usec;
|
usec_t max_file_usec;
|
||||||
usec_t oldest_file_usec;
|
usec_t oldest_file_usec;
|
||||||
|
|
|
@ -322,7 +322,7 @@ int config_parse_dhcp_send_option(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
free(word);
|
word = mfree(word);
|
||||||
r = extract_first_word(&p, &word, ":", 0);
|
r = extract_first_word(&p, &word, ":", 0);
|
||||||
if (r == -ENOMEM)
|
if (r == -ENOMEM)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
#include "pretty-print.h"
|
#include "pretty-print.h"
|
||||||
#include "string-util.h"
|
#include "string-util.h"
|
||||||
#include "strv.h"
|
#include "strv.h"
|
||||||
|
#include "terminal-util.h"
|
||||||
#include "user-util.h"
|
#include "user-util.h"
|
||||||
#include "util.h"
|
#include "util.h"
|
||||||
|
|
||||||
|
@ -35,8 +36,8 @@ static int help(void) {
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
printf("%s [OPTIONS...] [VARIABLE=VALUE...]\n\n"
|
printf("%s [OPTIONS...] [VARIABLE=VALUE...]\n"
|
||||||
"Notify the init system about service status updates.\n\n"
|
"\n%sNotify the init system about service status updates.%s\n\n"
|
||||||
" -h --help Show this help\n"
|
" -h --help Show this help\n"
|
||||||
" --version Show package version\n"
|
" --version Show package version\n"
|
||||||
" --ready Inform the init system about service start-up completion\n"
|
" --ready Inform the init system about service start-up completion\n"
|
||||||
|
@ -46,6 +47,7 @@ static int help(void) {
|
||||||
" --booted Check if the system was booted up with systemd\n"
|
" --booted Check if the system was booted up with systemd\n"
|
||||||
"\nSee the %s for details.\n"
|
"\nSee the %s for details.\n"
|
||||||
, program_invocation_short_name
|
, program_invocation_short_name
|
||||||
|
, ansi_highlight(), ansi_normal()
|
||||||
, link
|
, link
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -290,7 +290,7 @@ static int help(void) {
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
printf("%1$s [OPTIONS...] [PATH] [ARGUMENTS...]\n\n"
|
printf("%1$s [OPTIONS...] [PATH] [ARGUMENTS...]\n\n"
|
||||||
"Spawn a command or OS in a light-weight container.\n\n"
|
"%5$sSpawn a command or OS in a light-weight container.%6$s\n\n"
|
||||||
" -h --help Show this help\n"
|
" -h --help Show this help\n"
|
||||||
" --version Print version string\n"
|
" --version Print version string\n"
|
||||||
" -q --quiet Do not show status information\n"
|
" -q --quiet Do not show status information\n"
|
||||||
|
@ -405,7 +405,9 @@ static int help(void) {
|
||||||
"\nSee the %2$s for details.\n"
|
"\nSee the %2$s for details.\n"
|
||||||
, program_invocation_short_name
|
, program_invocation_short_name
|
||||||
, link
|
, link
|
||||||
, ansi_underline(), ansi_normal());
|
, ansi_underline(), ansi_normal()
|
||||||
|
, ansi_highlight(), ansi_normal()
|
||||||
|
);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue