service.py 588 B

12345678910111213141516171819202122232425
  1. from comar.service import *
  2. serviceType = "server"
  3. serviceDesc = _({"en": "Postfix Mail Server",
  4. "tr": "Postfix E-Posta Sunucusu"})
  5. @synchronized
  6. def start():
  7. startService(command="/usr/sbin/postfix",
  8. args="start",
  9. donotify=True)
  10. @synchronized
  11. def stop():
  12. stopService(command="/usr/sbin/postfix",
  13. args="stop",
  14. donotify=True)
  15. def reload():
  16. stopService(command="/usr/sbin/postfix",
  17. args="reload")
  18. def status():
  19. return isServiceRunning(command="/usr/lib/postfix/master")