aboutsummaryrefslogtreecommitdiffstats
path: root/roles/zfs/templates/etc/systemd/system/zfs-trim@.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/zfs/templates/etc/systemd/system/zfs-trim@.service.j2')
-rw-r--r--roles/zfs/templates/etc/systemd/system/zfs-trim@.service.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/zfs/templates/etc/systemd/system/zfs-trim@.service.j2 b/roles/zfs/templates/etc/systemd/system/zfs-trim@.service.j2
new file mode 100644
index 0000000..ef3ec43
--- /dev/null
+++ b/roles/zfs/templates/etc/systemd/system/zfs-trim@.service.j2
@@ -0,0 +1,11 @@
+[Unit]
+Description=zpool trim for %i
+
+[Service]
+Nice=19
+IOSchedulingClass=idle
+KillSignal=SIGINT
+ExecStart=zpool trim %i
+
+[Install]
+WantedBy=multi-user.target