1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
# OpenBSD service items
Handles services on OpenBSD.
svc_openbsd = {
"bgpd": {
"enabled": True, # default
"running": True, # default
},
"supervisord": {
"running": False,
},
}
<br><br>
# Attribute reference
See also: [The list of generic builtin item attributes](../repo/items.py.md#builtin-item-attributes)
<hr>
## enabled
`True` if the service shall be automatically started during system bootup; `False` otherwise. `True`, the default value, is needed on OpenBSD, as starting disabled services fails.
<hr>
## running
`True` if the service is expected to be running on the system; `False` if it should be stopped.
<hr>
## Canned actions
See also: [Explanation of how canned actions work](../repo/items.py.md#canned-actions)
## restart
Restarts the service.
<hr>
## stop
Stops the service.
<hr>
## stopstart
Stops and starts the service.
|