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 55 56 57 58 59 60
|
# systemd service items
Handles services managed by systemd.
svc_systemd = {
"fcron.service": {
"enabled": True, # default
"running": True, # default
"masked": False, # default
},
"sgopherd.socket": {
"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. `None` makes BundleWrap ignore this setting.
<hr>
## running
`True` if the service is expected to be running on the system; `False` if it should be stopped. `None` makes BundleWrap ignore this setting.
<hr>
## masked
`True` if the service is expected to be masked; `False` if it should be unmasked. `None` makes BundleWrap ignore this setting.
<hr>
## Canned actions
See also: [Explanation of how canned actions work](../repo/items.py.md#canned-actions)
## reload
Reloads the service.
<hr>
## restart
Restarts the service.
<hr>
## stop
Stops the service.
|