summaryrefslogtreecommitdiffstats
path: root/recipes-core/systemd/rpi-zram-service/rpi-zram.service
diff options
context:
space:
mode:
authorDavid-John Willis <John.Willis@Distant-earth.com>2012-04-24 13:56:05 +0100
committerDavid-John Willis <John.Willis@Distant-earth.com>2012-04-24 13:56:05 +0100
commit03eef509e4aa5aae05326410fb9f9fdfcf433f48 (patch)
tree97a3494f64fa9ecc602935f0b373092a102fad7d /recipes-core/systemd/rpi-zram-service/rpi-zram.service
parent04f059923b89dad285847a02df88fad4ff612435 (diff)
downloadmeta-raspberrypi-03eef509e4aa5aae05326410fb9f9fdfcf433f48.tar.gz
rpi-zram-service: Add little systemd service to enable zram on the RPi.
* Needs to move to something more generic in time.
Diffstat (limited to 'recipes-core/systemd/rpi-zram-service/rpi-zram.service')
-rw-r--r--recipes-core/systemd/rpi-zram-service/rpi-zram.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes-core/systemd/rpi-zram-service/rpi-zram.service b/recipes-core/systemd/rpi-zram-service/rpi-zram.service
new file mode 100644
index 0000000..007dfcc
--- /dev/null
+++ b/recipes-core/systemd/rpi-zram-service/rpi-zram.service
@@ -0,0 +1,12 @@
1[Unit]
2Description=Enable zram compressed in-memory swap.
3After=multi-user.target
4
5[Service]
6RemainAfterExit=yes
7ExecStart=/usr/bin/rpi-load-zram.sh --load
8ExecStop=/usr/bin/rpi-load-zram.sh --unload
9Type=oneshot
10
11[Install]
12WantedBy=multi-user.target