bundles/zfs: please, just restart zed

This commit is contained in:
Franzi 2022-12-18 11:43:38 +01:00
parent 8621c726bb
commit caa54051ff
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 13 additions and 0 deletions

View 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

View file

@ -37,6 +37,13 @@ files = {
'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': {
'content': dumps(
node.metadata.get('zfs/snapshots', {}),