nut: Reload systemd after updating container unit
Need to run `systemctl daemon-reload` after creating or modifying the `nut-server.container` unit file, so that the corresponding service unit will be generated.
This commit is contained in:
@@ -40,7 +40,10 @@ templates = [
|
||||
template = "nut/nut-server.container"
|
||||
dest = "/etc/containers/systemd/nut-server.container"
|
||||
hooks = {
|
||||
changed = [{run = "systemctl restart nut-server"}]
|
||||
changed = [
|
||||
{run = "systemctl daemon-reload", immediate = True}
|
||||
{run = "systemctl restart nut-server"}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user