c161a6cf01
Use /bin/bash to echo value into sys fs for ksm control (bsc#1112646) OBS-URL: https://build.opensuse.org/request/show/657981 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=438
14 lines
314 B
Desktop File
14 lines
314 B
Desktop File
[Unit]
|
|
Description=Kernel Samepage Merging
|
|
ConditionPathExists=/sys/kernel/mm/ksm
|
|
ConditionVirtualization=no
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStart=/bin/bash -c "/bin/echo 1 > /sys/kernel/mm/ksm/run"
|
|
ExecStop=/bin/bash -c "/bin/echo 0 > /sys/kernel/mm/ksm/run"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|