2014-03-19 15:11:16 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Kernel Samepage Merging
|
|
|
|
ConditionPathExists=/sys/kernel/mm/ksm
|
|
|
|
ConditionVirtualization=no
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2019-07-01 10:07:52 +02:00
|
|
|
ExecStart=/bin/bash -c "/bin/echo 1 > /sys/kernel/mm/ksm/run"
|
|
|
|
ExecStop=/bin/bash -c "/bin/echo 0 > /sys/kernel/mm/ksm/run"
|
2014-03-19 15:11:16 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|