bundles/systemd-swap/metadata.py: swapfile-prepare.service and swapfile.swap are part of each other (one restarts the other)
This commit is contained in:
parent
22d92af61b
commit
426f37f098
1 changed files with 8 additions and 0 deletions
|
@ -3,6 +3,11 @@ defaults = {
|
||||||
'systemd': {
|
'systemd': {
|
||||||
'units': {
|
'units': {
|
||||||
'swapfile.swap': {
|
'swapfile.swap': {
|
||||||
|
'Unit': {
|
||||||
|
'PartOf': {
|
||||||
|
'swapfile-prepare.service', # restart together
|
||||||
|
},
|
||||||
|
},
|
||||||
'Swap': {
|
'Swap': {
|
||||||
'What': '/swapfile',
|
'What': '/swapfile',
|
||||||
},
|
},
|
||||||
|
@ -31,6 +36,9 @@ def unit(metadata):
|
||||||
'Before': {
|
'Before': {
|
||||||
'swapfile.swap',
|
'swapfile.swap',
|
||||||
},
|
},
|
||||||
|
'PartOf': {
|
||||||
|
'swapfile.swap', # restart together
|
||||||
|
},
|
||||||
},
|
},
|
||||||
'Service': {
|
'Service': {
|
||||||
'Type': 'oneshot',
|
'Type': 'oneshot',
|
||||||
|
|
Loading…
Reference in a new issue