Files
webmin--webmin/systemd/help/systemd_restart.html
T
2026-07-13 13:12:17 +08:00

10 lines
554 B
HTML

<header>Restart policy</header>
<p>Controls when systemd restarts the service after it exits. This writes
<tt>Restart=</tt>.</p>
<p><tt>no</tt> disables automatic restarts. <tt>on-failure</tt> restarts after
non-zero exits, signals, timeouts, and watchdog failures. <tt>always</tt>
restarts after almost any exit except an explicit stop by systemd.</p>
<p><tt>on-success</tt>, <tt>on-abnormal</tt>, <tt>on-abort</tt>, and
<tt>on-watchdog</tt> are narrower policies. For ordinary server processes,
<tt>on-failure</tt> is usually the practical choice.</p>