bundles/zfs: please, just restart zed
This commit is contained in:
parent
8621c726bb
commit
caa54051ff
2 changed files with 13 additions and 0 deletions
6
bundles/zfs/files/zfs-zed-override.service
Normal file
6
bundles/zfs/files/zfs-zed-override.service
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Service]
|
||||||
|
# Default unit sets Restart=on-abort, which will not automatically
|
||||||
|
# restart zed after system has suspended. I'm not sure why zed even
|
||||||
|
# exits after suspending the system.
|
||||||
|
Restart=always
|
||||||
|
RestartSec=2
|
|
@ -37,6 +37,13 @@ files = {
|
||||||
'action:systemd-reload',
|
'action:systemd-reload',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
'/etc/systemd/system/zfs-zed.service.d/bundlewrap.conf': {
|
||||||
|
'source': 'zfs-zed-override.service',
|
||||||
|
'triggers': {
|
||||||
|
'action:systemd-reload',
|
||||||
|
'svc_systemd:zfs-zed:restart'
|
||||||
|
},
|
||||||
|
},
|
||||||
'/etc/zfs-snapshot-config.json': {
|
'/etc/zfs-snapshot-config.json': {
|
||||||
'content': dumps(
|
'content': dumps(
|
||||||
node.metadata.get('zfs/snapshots', {}),
|
node.metadata.get('zfs/snapshots', {}),
|
||||||
|
|
Loading…
Reference in a new issue