diff options
| author | David-John Willis <John.Willis@Distant-earth.com> | 2012-04-24 13:56:05 +0100 |
|---|---|---|
| committer | David-John Willis <John.Willis@Distant-earth.com> | 2012-04-24 13:56:05 +0100 |
| commit | 03eef509e4aa5aae05326410fb9f9fdfcf433f48 (patch) | |
| tree | 97a3494f64fa9ecc602935f0b373092a102fad7d /recipes-core/systemd/rpi-zram-service/rpi-zram.service | |
| parent | 04f059923b89dad285847a02df88fad4ff612435 (diff) | |
| download | meta-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.service | 12 |
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] | ||
| 2 | Description=Enable zram compressed in-memory swap. | ||
| 3 | After=multi-user.target | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | RemainAfterExit=yes | ||
| 7 | ExecStart=/usr/bin/rpi-load-zram.sh --load | ||
| 8 | ExecStop=/usr/bin/rpi-load-zram.sh --unload | ||
| 9 | Type=oneshot | ||
| 10 | |||
| 11 | [Install] | ||
| 12 | WantedBy=multi-user.target | ||
