rsync add rep
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# -*- 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")
|
||||
Reference in New Issue
Block a user