From facdd63fe173b51c6d9de29ccc2167b0d7a45b6f Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 21 Jan 2023 23:03:00 +0100 Subject: syncoid/autosuspend: implement disk spindown mode --- roles/storage/zfs/syncoid/templates/pull.timer.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/storage/zfs/syncoid/templates/pull.timer.j2') diff --git a/roles/storage/zfs/syncoid/templates/pull.timer.j2 b/roles/storage/zfs/syncoid/templates/pull.timer.j2 index bcbb1a28..c43c5b28 100644 --- a/roles/storage/zfs/syncoid/templates/pull.timer.j2 +++ b/roles/storage/zfs/syncoid/templates/pull.timer.j2 @@ -4,7 +4,7 @@ Description=syncoid-based backup for {{ item.key }} [Timer] OnCalendar={{ item.value.periodic.schedule }} AccuracySec=10s -WakeSystem={{ zfs_syncoid_autosuspend | ternary('true', 'false') }} +WakeSystem={{ (zfs_syncoid_autosuspend is defined and zfs_syncoid_autosuspend == 'system') | ternary('true', 'false') }} [Install] WantedBy=timers.target -- cgit v1.2.3