mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-29 22:47:29 +00:00
zram: Add systemd service for zram
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
parent
d6055c8e44
commit
72e6ed1469
12
meta-systemd/meta-oe/recipes-extended/zram/zram/zram.service
Normal file
12
meta-systemd/meta-oe/recipes-extended/zram/zram/zram.service
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Enable zram compressed in-memory swap.
|
||||||
|
After=multi-user.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
RemainAfterExit=yes
|
||||||
|
ExecStart=/usr/bin/zram-load.sh --load
|
||||||
|
ExecStop=/usr/bin/zram-load.sh --unload
|
||||||
|
Type=oneshot
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
12
meta-systemd/meta-oe/recipes-extended/zram/zram_0.1.bbappend
Normal file
12
meta-systemd/meta-oe/recipes-extended/zram/zram_0.1.bbappend
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
|
PRINC := "${@int(PRINC) + 1}"
|
||||||
|
|
||||||
|
inherit systemd
|
||||||
|
|
||||||
|
SRC_URI += " \
|
||||||
|
file://zram.service \
|
||||||
|
"
|
||||||
|
|
||||||
|
SYSTEMD_PACKAGES = "${PN}-systemd"
|
||||||
|
SYSTEMD_SERVICE_${PN}-systemd = "zram.service"
|
||||||
Loading…
x
Reference in New Issue
Block a user