computer-playbook/roles/system-btrfs-auto-balancer/templates/system-btrfs-auto-balancer.service.j2

7 lines
155 B
Django/Jinja

[Unit]
Description=auto balance btrfs
OnFailure=systemd-notifier.cymais@%n.service
[Service]
Type=oneshot
ExecStart=/bin/sh -c 'btrfs-auto-balancer 90 10'