This commit is contained in:
bferturk
2016-09-07 16:07:12 +03:00
parent 772ec45af1
commit 76bf9c2a76
11 changed files with 97548 additions and 97277 deletions
+31
View File
@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
from comar.service import *
import os
serviceType="server"
serviceDesc=_({"en": "lxdm Server",
"tr": "lxdm Sunucusu"})
serviceDefault="on"
PIDFILE="/run/lxdm.pid"
DAEMON="/usr/sbin/lxdm"
@synchronized
def start():
startService(command=DAEMON,
pidfile=PIDFILE,
detach=True,
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except OSError:
pass
def status():
return isServiceRunning(PIDFILE)