index and compenent.xml's

This commit is contained in:
Ertuğrul Erata
2015-07-16 13:35:42 +03:00
parent 610613031d
commit af0c584ffe
19 changed files with 39806 additions and 35511 deletions
-23
View File
@@ -1,23 +0,0 @@
from comar.service import *
import os
serviceType = "local"
serviceDesc = _({"en": "GPS Daemon",
"tr": "GPS Hizmeti"})
serviceDefault = "off"
@synchronized
def start():
startService(command="/usr/sbin/gpsd",
args="-P /run/gpsd.pid -F /run/gpsd.sock %s %s" %
(config.get("OPTIONS", "-n"), config.get("DEVICE", "/dev/ttyUSB0")))
@synchronized
def stop():
stopService(pidfile="/run/gpsd.pid", donotify=True)
if os.path.exists("/run/gpsd.pid"):
os.unlink("/run/gpsd.pid")
def status():
return isServiceRunning("/run/gpsd.pid")