create core package

This commit is contained in:
aydemir
2015-02-24 11:18:35 +02:00
parent 0e4b743b82
commit 70b25d0f95
1098 changed files with 169545 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
from comar.service import *
serviceType = "local"
serviceDesc = _({"en": "Cron Task Scheduler",
"tr": "Cron Görev Zamanlayıcı"})
serviceDefault = "on"
@synchronized
def start():
startService(command="/usr/sbin/cron",
pidfile="/var/run/cron.pid",
donotify=True)
@synchronized
def stop():
stopService(pidfile="/var/run/cron.pid",
donotify=True)
def status():
return isServiceRunning("/var/run/cron.pid")