Skip to content

Commit

Permalink
Explain restart conditions in the restart keyword doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Mar 26, 2018
1 parent 0e32f99 commit 5cc8ad9
Show file tree
Hide file tree
Showing 101 changed files with 301 additions and 101 deletions.
2 changes: 1 addition & 1 deletion lib/svcdict.py
Original file line number Diff line number Diff line change
Expand Up @@ -3868,7 +3868,7 @@ def kw_restart(resource):
at=True,
default=0,
convert="integer",
text="The agent will try to restart a resource n times before falling back to the monitor action."
text="The agent will try to restart a resource n times before falling back to the monitor action. The resource must be monitored, the service and node not frozen, the resource not disabled and the service with a local expect set to 'started'."
)
def kw_provision(resource):
return Keyword(
Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.DEFAULT.conf
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.amazon.conf
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.docker.conf
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.esx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.hpvm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.jail.conf
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.kvm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.ldom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.lxc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.lxd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.openstack.conf
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.ovm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.srp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.vbox.conf
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.vcloud.conf
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.vz.conf
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.xen.conf
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.container.zone.conf
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.amazon.conf
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.disk.conf
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.drbd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.gce.conf
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.loop.conf
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.lv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.lvm.conf
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.md.conf
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.rados.conf
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.raw.conf
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.vdisk.conf
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.veritas.conf
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.vg.conf
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.vmdg.conf
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.disk.zpool.conf
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
4 changes: 3 additions & 1 deletion usr/share/doc/template.service.fs.bfs.conf
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,9 @@
# convert: integer
#
# desc: The agent will try to restart a resource n times before falling back
# to the monitor action.
# to the monitor action. The resource must be monitored, the service
# and node not frozen, the resource not disabled and the service with
# a local expect set to 'started'.
#
;restart = 0

Expand Down
Loading

0 comments on commit 5cc8ad9

Please sign in to comment.