moved into main for pisi 2.0

This commit is contained in:
2015-07-04 15:10:40 +03:00
parent 4b208b46d2
commit a421b3e735
7 changed files with 473 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
from comar.service import *
import os
serviceType = "local"
serviceDesc = _({"en": "Bluetooth Service",
"tr": "Bluetooth Hizmeti"})
serviceDefault = "on"
PIDFILE="/run/bluez.pid"
DAEMON ="/usr/libexec/bluetooth/bluetoothd"
@synchronized
def start():
startService(command=DAEMON,
pidfile=PIDFILE,
detach=True,
donotify=True)
os.system("pidof bluez + /usr/libexec/bluetooth/bluetoothd > /run/bluez.pid")
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except:
pass
def status():
return isServiceRunning(pidfile=PIDFILE)