1234567891011121314151617181920212223 |
- # -*- coding: utf-8 -*-
- serviceType = "server"
- serviceDesc = _({"en": "RSync Daemon",
- "tr": "RSync Servisi"})
- serviceConf = "rsyncd"
- from comar.service import *
- @synchronized
- def start():
- startService(command="/usr/bin/rsync",
- args="--daemon %s" % config.get("RSYNC_OPTS", ""),
- pidfile="/run/rsyncd.pid",
- donotify=True)
- @synchronized
- def stop():
- stopService(pidfile="/run/rsyncd.pid",
- donotify=True)
- def status():
- return isServiceRunning("/run/rsyncd.pid")
|