summaryrefslogtreecommitdiff
path: root/pcr/zramswap/zramswap.service
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/zramswap/zramswap.service')
-rw-r--r--pcr/zramswap/zramswap.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/pcr/zramswap/zramswap.service b/pcr/zramswap/zramswap.service
new file mode 100644
index 000000000..9c9cccd23
--- /dev/null
+++ b/pcr/zramswap/zramswap.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Zram-based swap (compressed RAM block devices)
+
+[Service]
+Type=oneshot
+ExecStart=/usr/lib/systemd/scripts/zramctrl start
+ExecStop=/usr/lib/systemd/scripts/zramctrl stop
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file