chiark / gitweb /
pid1: add option to disable service watchdogs
authorJan Klötzke <Jan.Kloetzke@preh.de>
Mon, 20 Mar 2017 12:10:43 +0000 (13:10 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:50:13 +0000 (07:50 +0200)
Add a "systemd.service_watchdogs=" option to the command line which
disables all service runtime watchdogs and emergency actions.

man/elogind.xml

index f1aa1369875655ca3c4c0f025d5c0525d6c8977d..274f155e8460dfa82593a72d3c260deb27a7e75f 100644 (file)
       <varlistentry>
         <term><option>-D</option></term>
         <term><option>--daemon</option></term>
+        <term><option>--service-watchdogs=</option></term>
 
         <listitem><para>Daemonize elogind by double-forking
         into background.</para></listitem>
+        <listitem><para>Globally enable/disable all service watchdog timeouts and emergency
+        actions. This setting may also be specified during boot, on the kernel
+        command line via the <varname>elogind.service_watchdogs=</varname>
+        option, see below. Defaults to enabled.</para></listitem>
       </varlistentry>
 
       <varlistentry>
         </para></listitem>
       </varlistentry>
 
+      <varlistentry>
+        <term><varname>systemd.service_watchdogs=</varname></term>
+
+        <listitem><para>Takes a boolean argument. If disabled, all service runtime
+        watchdogs (<option>WatchdogSec=</option>) and emergency actions (e.g.
+        <option>OnFailure=</option> or <option>StartLimitAction=</option>) are
+        ignored by the system manager (PID 1); see
+        <citerefentry><refentrytitle>systemd.service</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
+        Defaults to enabled, i.e. watchdogs and failure actions are processed
+        normally. The hardware watchdog is not affected by this
+        option.</para></listitem>
+      </varlistentry>
+
       <varlistentry>
         <term><varname>systemd.show_status</varname></term>