summaryrefslogtreecommitdiff
path: root/man/systemd.service.xml
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-08 18:34:54 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-08 18:34:54 +0200
commit50caaedb2c416c8972f9b2f835a69a20c524e81e (patch)
tree4f0380efa907f3ab5c9b3699095494de4af3eab0 /man/systemd.service.xml
parentc84ed68f304b22606f874118e6eb32f7089b1699 (diff)
service: introduce Restart=on-failure and Restart=on-abort
Diffstat (limited to 'man/systemd.service.xml')
-rw-r--r--man/systemd.service.xml33
1 files changed, 21 insertions, 12 deletions
diff --git a/man/systemd.service.xml b/man/systemd.service.xml
index 66806f1bd..c9cd51f73 100644
--- a/man/systemd.service.xml
+++ b/man/systemd.service.xml
@@ -426,19 +426,28 @@
<varlistentry>
<term><varname>Restart=</varname></term>
<listitem><para>Configures whether the
- main service process shall be restarted when
- it exists. Takes one of
+ main service process shall be
+ restarted when it exists. Takes one of
<option>no</option>,
- <option>on-success</option> or
- <option>always</option>. If
- set to <option>no</option> (the
- default) the service will not be
- restarted when it exits. If set to
- <option>on-success</option> it
- will be restarted only when it exited
- cleanly, i.e. terminated with an exit
- code of 0. If set to
- <option>always</option> the
+ <option>on-success</option>,
+ <option>on-failure</option>,
+ <option>on-abort</option> or
+ <option>always</option>. If set to
+ <option>no</option> (the default) the
+ service will not be restarted when it
+ exits. If set to
+ <option>on-success</option> it will be
+ restarted only when it exited cleanly,
+ i.e. terminated with an exit code of
+ 0. If set to
+ <option>on-failure</option> it will be
+ restared only when it exited with an
+ exit code not equalling 0, or when
+ terminated by a signal. If set to
+ <option>on-abort</option> it will be
+ restarted only if it exits due to
+ reception of an uncaught signal. If
+ set to <option>always</option> the
service will be restarted regardless
whether it exited cleanly or not, or
got terminated abnormally by a