qemu:moved into main repo for pisi 2.0
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user