service.py 536 B

12345678910111213141516171819202122
  1. # -*- coding: utf-8 -*-
  2. serviceType = "local"
  3. serviceDesc = _({"en": "ATI Events Daemon",
  4. "tr": "ATI Olay Servisi"})
  5. serviceConf = "atieventsd"
  6. from comar.service import *
  7. @synchronized
  8. def start():
  9. startService(command="/usr/sbin/atieventsd",
  10. args=config.get("ATIEVENTSDOPTS", ""),
  11. donotify=True)
  12. @synchronized
  13. def stop():
  14. stopService(command="/usr/sbin/atieventsd",
  15. donotify=True)
  16. def status():
  17. return isServiceRunning(command="/usr/sbin/atieventsd")