service.py 515 B

1234567891011121314151617181920212223
  1. # -*- coding: utf-8 -*-
  2. from comar.service import *
  3. serviceType = "server"
  4. serviceDesc = _({"en": "vsFTP Server",
  5. "tr": "vsFTP Sunucusu"})
  6. @synchronized
  7. def start():
  8. startService(command="/usr/sbin/vsftpd",
  9. args="/etc/vsftpd/vsftpd.conf",
  10. detach=True,
  11. donotify=True)
  12. @synchronized
  13. def stop():
  14. stopService(command="/usr/sbin/vsftpd",
  15. donotify=True)
  16. def status():
  17. return isServiceRunning(command="/usr/sbin/vsftpd")