avahi-daemon-service.py 595 B

1234567891011121314151617181920212223242526
  1. from comar.service import *
  2. serviceType="server"
  3. serviceDesc = _({"en": "Avahi Server",
  4. "tr": "Avahi Hizmeti"})
  5. @synchronized
  6. def start():
  7. startService(command="/usr/sbin/avahi-daemon",
  8. args="-D",
  9. donotify=True)
  10. @synchronized
  11. def stop():
  12. stopService(command="/usr/sbin/avahi-daemon",
  13. args="-k",
  14. donotify=True)
  15. def reload():
  16. stopService(command="/usr/sbin/avahi-daemon",
  17. args="-r",
  18. donotify=True)
  19. def status():
  20. return isServiceRunning("/run/avahi-daemon/pid")