This commit is contained in:
Rmys
2024-06-01 19:40:14 +03:00
parent dd72220c25
commit f25e893cb5
26 changed files with 319 additions and 321 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/usr/bin/python
#-*- coding: UTF-8 -*-
from comar.service import *
import os
serviceType = "server"
serviceDesc = _({
"en": "GNOME Desktop",
"tr": "GNOME Masaüstü",
})
serviceDefault="on"
PIDFILE="/run/gdm/gdm.pid"
DAEMON="/usr/sbin/gdm"
@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)