xdm:moved into contrib repo

This commit is contained in:
2015-08-03 14:56:43 +03:00
parent d6fc5b36c2
commit b30efa6242
17 changed files with 0 additions and 764 deletions
-38
View File
@@ -1,38 +0,0 @@
from comar.service import *
serviceType = "local"
serviceDesc = _({
"en": "Display Manager",
"tr": "Görüntü Yöneticisi",
})
serviceDefault = "on"
pidFile = "/run/dm.pid"
@synchronized
def start(boot=False):
if status():
return
#startDependencies("acpid")
startService(command="/usr/bin/start-dm",
args="--boot" if boot else None,
detach=True,
pidfile=pidFile,
makepid=True,
donotify=True)
@synchronized
def stop():
stopService(pidfile=pidFile,
donotify=True)
def status():
return isServiceRunning(pidFile)
def ready():
from pardus.sysutils import get_kernel_option
if is_on() == "on" and "off" not in get_kernel_option("xorg"):
start(boot=True)