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
|
2018-01-15 21:21:37 +01:00
|
|
|
ExecStart=/bin/echo 1 > /sys/kernel/mm/ksm/run
|
|
|
|
ExecStop=/bin/echo 0 > /sys/kernel/mm/ksm/run
|
2014-03-19 15:11:16 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|