qemu:moved into main repo for pisi 2.0

This commit is contained in:
2015-12-31 13:30:13 +02:00
parent b4db62ba18
commit 76492b9fdf
16 changed files with 1473 additions and 0 deletions
@@ -0,0 +1,27 @@
from comar.service import *
import os
serviceType = "local"
serviceDefault = "off"
serviceDesc = _({"en": "Kernel Samepage Merging Tuned Daemon",
"tr": "Kernel Aynısayfa Birleştirici İnce Ayarlı Sunucu"})
serviceConf = "ksm"
ksmtuned = "/usr/sbin/ksmtuned"
ksmtunedpid = "/run/ksmtune.pid"
@synchronized
def start():
startService(command=ksmtuned,
pidfile=ksmtunedpid,
donotify=True)
@synchronized
def stop():
stopService(pidfile=ksmtunedpid,
donotify=True)
def status():
return isServiceRunning(ksmtunedpid)