xinit and xdm is fixed builddep.

This commit is contained in:
Ertuğrul Erata
2015-07-15 18:20:16 +03:00
parent a5ddc4e64f
commit f1f07fcac9
34 changed files with 1042 additions and 1 deletions
+38
View File
@@ -0,0 +1,38 @@
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)