lxdm fix service

This commit is contained in:
burakerturk
2016-09-29 17:13:55 +03:00
parent 7ac3627500
commit bb8f02577f
2 changed files with 15 additions and 4 deletions
+8 -4
View File
@@ -11,11 +11,15 @@ DAEMON="/usr/sbin/lxdm"
@synchronized
def start():
startService(command=DAEMON,
pidfile=PIDFILE,
detach=True,
donotify=True)
if status():
return
reply = startService(command=DAEMON,
pidfile=PIDFILE,
donotify=True)
if reply == 0:
run("/usr/sbin/lxdm")
@synchronized
def stop():