mirror of
https://github.com/systemd/systemd
synced 2026-03-30 19:54:51 +02:00
Compare commits
No commits in common. "506bbc8569014253ea8614b680ccbc4fc2513a87" and "b6e44cd934873659f233bfd962e4a0dcb3026e59" have entirely different histories.
506bbc8569
...
b6e44cd934
@ -386,9 +386,8 @@
|
|||||||
<term><varname>systemd.default_timeout_start_sec=</varname></term>
|
<term><varname>systemd.default_timeout_start_sec=</varname></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Overrrides the default start job timeout <varname>DefaultTimeoutStartSec=</varname> at
|
<para>Overwrites the default start job timeout <varname>DefaultTimeoutStartSec=</varname> at boot. For details,
|
||||||
boot. For details, see
|
see <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
|
||||||
<citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
|
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
@ -396,20 +395,7 @@
|
|||||||
<term><varname>systemd.watchdog_device=</varname></term>
|
<term><varname>systemd.watchdog_device=</varname></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>Overrrides the watchdog device path <varname>WatchdogDevice=</varname>. For details, see
|
<para>Overwrites the watchdog device path <varname>WatchdogDevice=</varname>. For details, see
|
||||||
<citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
|
|
||||||
<varlistentry>
|
|
||||||
<term><varname>systemd.watchdog_sec=</varname></term>
|
|
||||||
|
|
||||||
<listitem>
|
|
||||||
<para>Overrrides the watchdog timeout settings otherwise configured with
|
|
||||||
<varname>RuntimeWatchdog=</varname>, <varname>RebootWatchdog=</varname> and
|
|
||||||
<varname>KExecWatchdogSec=</varname>. Takes a time value (if no unit is specified, seconds is the
|
|
||||||
implicitly assumed time unit) or the special strings <literal>off</literal> or
|
|
||||||
<literal>default</literal>. For details, see
|
|
||||||
<citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
|
<citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|||||||
@ -135,13 +135,11 @@
|
|||||||
|
|
||||||
<listitem><para>Configure the hardware watchdog at runtime and at reboot. Takes a timeout value in
|
<listitem><para>Configure the hardware watchdog at runtime and at reboot. Takes a timeout value in
|
||||||
seconds (or in other time units if suffixed with <literal>ms</literal>, <literal>min</literal>,
|
seconds (or in other time units if suffixed with <literal>ms</literal>, <literal>min</literal>,
|
||||||
<literal>h</literal>, <literal>d</literal>, <literal>w</literal>), or the special strings
|
<literal>h</literal>, <literal>d</literal>, <literal>w</literal>). If set to zero the watchdog logic
|
||||||
<literal>off</literal> or <literal>default</literal>. If set to <literal>off</literal>
|
is disabled: no watchdog device is opened, configured, or pinged. If set to the special string
|
||||||
(alternatively: <literal>0</literal>) the watchdog logic is disabled: no watchdog device is opened,
|
<literal>default</literal> the watchdog is opened and pinged in regular intervals, but the timeout
|
||||||
configured, or pinged. If set to the special string <literal>default</literal> the watchdog is opened
|
is not changed from the default. If set to any other time value the watchdog timeout is configured to
|
||||||
and pinged in regular intervals, but the timeout is not changed from the default. If set to any other
|
the specified value (or a value close to it, depending on hardware capabilities).</para>
|
||||||
time value the watchdog timeout is configured to the specified value (or a value close to it,
|
|
||||||
depending on hardware capabilities).</para>
|
|
||||||
|
|
||||||
<para>If <varname>RuntimeWatchdogSec=</varname> is set to a non-zero value, the watchdog hardware
|
<para>If <varname>RuntimeWatchdogSec=</varname> is set to a non-zero value, the watchdog hardware
|
||||||
(<filename>/dev/watchdog</filename> or the path specified with <varname>WatchdogDevice=</varname> or
|
(<filename>/dev/watchdog</filename> or the path specified with <varname>WatchdogDevice=</varname> or
|
||||||
|
|||||||
@ -165,7 +165,6 @@ static int detect_vm_dmi_vendor(void) {
|
|||||||
{ "Parallels", VIRTUALIZATION_PARALLELS },
|
{ "Parallels", VIRTUALIZATION_PARALLELS },
|
||||||
/* https://wiki.freebsd.org/bhyve */
|
/* https://wiki.freebsd.org/bhyve */
|
||||||
{ "BHYVE", VIRTUALIZATION_BHYVE },
|
{ "BHYVE", VIRTUALIZATION_BHYVE },
|
||||||
{ "Microsoft", VIRTUALIZATION_MICROSOFT },
|
|
||||||
};
|
};
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
|||||||
@ -6347,8 +6347,6 @@ int config_parse_watchdog_sec(
|
|||||||
void *data,
|
void *data,
|
||||||
void *userdata) {
|
void *userdata) {
|
||||||
|
|
||||||
usec_t *usec = data;
|
|
||||||
|
|
||||||
assert(filename);
|
assert(filename);
|
||||||
assert(lvalue);
|
assert(lvalue);
|
||||||
assert(rvalue);
|
assert(rvalue);
|
||||||
@ -6356,12 +6354,12 @@ int config_parse_watchdog_sec(
|
|||||||
/* This is called for {Runtime,Reboot,KExec}WatchdogSec= where "default" maps to
|
/* This is called for {Runtime,Reboot,KExec}WatchdogSec= where "default" maps to
|
||||||
* USEC_INFINITY internally. */
|
* USEC_INFINITY internally. */
|
||||||
|
|
||||||
if (streq(rvalue, "default"))
|
if (streq(rvalue, "default")) {
|
||||||
*usec = USEC_INFINITY;
|
usec_t *usec = data;
|
||||||
else if (streq(rvalue, "off"))
|
|
||||||
*usec = 0;
|
|
||||||
else
|
|
||||||
return config_parse_sec(unit, filename, line, section, section_line, lvalue, ltype, rvalue, data, userdata);
|
|
||||||
|
|
||||||
return 0;
|
*usec = USEC_INFINITY;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
return config_parse_sec(unit, filename, line, section, section_line, lvalue, ltype, rvalue, data, userdata);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -544,8 +544,6 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
|
|||||||
|
|
||||||
if (streq(value, "default"))
|
if (streq(value, "default"))
|
||||||
arg_runtime_watchdog = USEC_INFINITY;
|
arg_runtime_watchdog = USEC_INFINITY;
|
||||||
else if (streq(value, "off"))
|
|
||||||
arg_runtime_watchdog = 0;
|
|
||||||
else {
|
else {
|
||||||
r = parse_sec(value, &arg_runtime_watchdog);
|
r = parse_sec(value, &arg_runtime_watchdog);
|
||||||
if (r < 0) {
|
if (r < 0) {
|
||||||
|
|||||||
@ -29,9 +29,9 @@
|
|||||||
#CPUAffinity=
|
#CPUAffinity=
|
||||||
#NUMAPolicy=default
|
#NUMAPolicy=default
|
||||||
#NUMAMask=
|
#NUMAMask=
|
||||||
#RuntimeWatchdogSec=off
|
#RuntimeWatchdogSec=0
|
||||||
#RebootWatchdogSec=10min
|
#RebootWatchdogSec=10min
|
||||||
#KExecWatchdogSec=off
|
#KExecWatchdogSec=0
|
||||||
#WatchdogDevice=
|
#WatchdogDevice=
|
||||||
#CapabilityBoundingSet=
|
#CapabilityBoundingSet=
|
||||||
#NoNewPrivileges=no
|
#NoNewPrivileges=no
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user