Files
2015-02-24 11:18:35 +02:00

21 lines
488 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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")