Proje Gitea'ya taşındı (Temiz başlangıç)

This commit is contained in:
Erkan IŞIK
2026-06-27 23:27:13 +03:00
commit c077995f65
683 changed files with 315285 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
from comar.service import *
import os
serviceType = "local"
serviceDesc = _({
"en": "teamviewer Remote Control Application",
"tr": "teamviewer Uzak Masaüstü Bağlantısı"})
serviceDefault = "on"
PIDFILE="/run/teamviewerd.pid"
DAEMON ="/opt/teamviewer/tv_bin/teamviewerd"
@synchronized
def start():
startService(command=DAEMON,
args=" -d",
donotify=True)
os.system("pidof -o %PPID " + "%s > %s" % (DAEMON, PIDFILE))
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except:
pass
def status():
return isServiceRunning(pidfile=PIDFILE)