Added lightdm

This commit is contained in:
Berk Çakar
2021-04-26 18:37:08 +03:00
parent 0466214b3c
commit 06758491f7
16 changed files with 523 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# -*- coding: utf-8 -*-
from comar.service import *
import os
serviceType="server"
serviceDesc=_({"en": "lightdm Server",
"tr": "lightdm Sunucusu"})
serviceDefault="on"
PIDFILE="/run/lightdm.pid"
DAEMON="/usr/bin/lightdm"
@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)