|
873 | 873 | effect.</para></listitem> |
874 | 874 | </varlistentry> |
875 | 875 |
|
876 | | - <varlistentry> |
877 | | - <term><varname>StartLimitInterval=</varname></term> |
878 | | - <term><varname>StartLimitBurst=</varname></term> |
879 | | - |
880 | | - <listitem><para>Configure service start rate limiting. By |
881 | | - default, services which are started more than 5 times within |
882 | | - 10 seconds are not permitted to start any more times until the |
883 | | - 10 second interval ends. With these two options, this rate |
884 | | - limiting may be modified. Use |
885 | | - <varname>StartLimitInterval=</varname> to configure the |
886 | | - checking interval (defaults to |
887 | | - <varname>DefaultStartLimitInterval=</varname> in manager |
888 | | - configuration file, set to 0 to disable any kind of rate |
889 | | - limiting). Use <varname>StartLimitBurst=</varname> to |
890 | | - configure how many starts per interval are allowed (defaults |
891 | | - to <varname>DefaultStartLimitBurst=</varname> in manager |
892 | | - configuration file). These configuration options are |
893 | | - particularly useful in conjunction with |
894 | | - <varname>Restart=</varname>; however, they apply to all kinds |
895 | | - of starts (including manual), not just those triggered by the |
896 | | - <varname>Restart=</varname> logic. Note that units which are |
897 | | - configured for <varname>Restart=</varname> and which reach the |
898 | | - start limit are not attempted to be restarted anymore; |
899 | | - however, they may still be restarted manually at a later |
900 | | - point, from which point on, the restart logic is again |
901 | | - activated. Note that <command>systemctl reset-failed</command> |
902 | | - will cause the restart rate counter for a service to be |
903 | | - flushed, which is useful if the administrator wants to |
904 | | - manually start a service and the start limit interferes with |
905 | | - that.</para></listitem> |
906 | | - </varlistentry> |
907 | | - |
908 | | - <varlistentry> |
909 | | - <term><varname>StartLimitAction=</varname></term> |
910 | | - |
911 | | - <listitem><para>Configure the action to take if the rate limit |
912 | | - configured with <varname>StartLimitInterval=</varname> and |
913 | | - <varname>StartLimitBurst=</varname> is hit. Takes one of |
914 | | - <option>none</option>, |
915 | | - <option>reboot</option>, |
916 | | - <option>reboot-force</option>, |
917 | | - <option>reboot-immediate</option>, |
918 | | - <option>poweroff</option>, |
919 | | - <option>poweroff-force</option> or |
920 | | - <option>poweroff-immediate</option>. If |
921 | | - <option>none</option> is set, hitting the rate limit will |
922 | | - trigger no action besides that the start will not be |
923 | | - permitted. <option>reboot</option> causes a reboot following |
924 | | - the normal shutdown procedure (i.e. equivalent to |
925 | | - <command>systemctl reboot</command>). |
926 | | - <option>reboot-force</option> causes a forced reboot which |
927 | | - will terminate all processes forcibly but should cause no |
928 | | - dirty file systems on reboot (i.e. equivalent to |
929 | | - <command>systemctl reboot -f</command>) and |
930 | | - <option>reboot-immediate</option> causes immediate execution |
931 | | - of the |
932 | | - <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry> |
933 | | - system call, which might result in data loss. Similarly, |
934 | | - <option>poweroff</option>, <option>poweroff-force</option>, |
935 | | - <option>poweroff-immediate</option> have the effect of |
936 | | - powering down the system with similar semantics. Defaults to |
937 | | - <option>none</option>.</para></listitem> |
938 | | - </varlistentry> |
939 | | - |
940 | 876 | <varlistentry> |
941 | 877 | <term><varname>FailureAction=</varname></term> |
942 | | - <listitem><para>Configure the action to take when the service |
943 | | - enters a failed state. Takes the same values as |
944 | | - <varname>StartLimitAction=</varname> and executes the same |
945 | | - actions. Defaults to <option>none</option>. </para></listitem> |
946 | | - </varlistentry> |
947 | | - |
948 | | - <varlistentry> |
949 | | - <term><varname>RebootArgument=</varname></term> |
950 | | - <listitem><para>Configure the optional argument for the |
951 | | - <citerefentry><refentrytitle>reboot</refentrytitle><manvolnum>2</manvolnum></citerefentry> |
952 | | - system call if <varname>StartLimitAction=</varname> or |
953 | | - <varname>FailureAction=</varname> is a reboot action. This |
954 | | - works just like the optional argument to <command>systemctl |
955 | | - reboot</command> command.</para></listitem> |
| 878 | + <listitem><para>Configure the action to take when the service enters a failed state. Takes the same values as |
| 879 | + the unit setting <varname>StartLimitAction=</varname> and executes the same actions (see |
| 880 | + <citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>). Defaults to |
| 881 | + <option>none</option>. </para></listitem> |
956 | 882 | </varlistentry> |
957 | 883 |
|
958 | 884 | <varlistentry> |
|
0 commit comments