systemd: accept .slice extension in unit-file routing
Slices are a standard systemd unit type; the existing routing only covered timer/service/mount/swap/target and raised on .slice. Same install path (/usr/local/lib/systemd/system/<name>) and same systemd-reload trigger as the other unit kinds.
This commit is contained in:
parent
af78e40fda
commit
cc1c6a5767
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ for name, unit in node.metadata.get('systemd/units').items():
|
||||||
'svc_systemd:systemd-networkd.service:restart',
|
'svc_systemd:systemd-networkd.service:restart',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
elif extension in ['timer', 'service', 'mount', 'swap', 'target']:
|
elif extension in ['timer', 'service', 'mount', 'swap', 'target', 'slice']:
|
||||||
path = f'/usr/local/lib/systemd/system/{name}'
|
path = f'/usr/local/lib/systemd/system/{name}'
|
||||||
dependencies = {
|
dependencies = {
|
||||||
'triggers': [
|
'triggers': [
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue