0f546e13b3
update notes:
- from '{{ node['home_path'] }}/data' to '{{ storage['btrfs']['mount_point'] }}'
11 lines
290 B
Django/Jinja
11 lines
290 B
Django/Jinja
[Unit]
|
|
Description=BTRFS auto scrub
|
|
ConditionPathIsMountPoint={{ storage['btrfs']['mount_point'] }}
|
|
RequiresMountsFor={{ storage['btrfs']['mount_point'] }}
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/btrfs scrub start -Bd {{ storage['btrfs']['mount_point'] }}
|
|
Nice=19
|
|
IOSchedulingClass=idle
|