From 77498fdbbca8554880eae4b8f559b9d6876e35b7 Mon Sep 17 00:00:00 2001 From: Kotresh H R Date: Sun, 25 May 2014 23:41:48 +0530 Subject: feature/geo-rep: Fix to retain pause state of gsyncd on restart. A new gsyncd options '--pause-on-start' is introduced. When node reboots, if the status is paused, gsyncd is started with this option. After gsyncd spawns worker and agent, worker will send SIGSTOP to negative pid of monitor to enter pause mode. Change-Id: I5aad82c9a9fc8c243f384940b77d25e26e520d6d BUG: 1101410 Signed-off-by: Kotresh H R Reviewed-on: http://review.gluster.org/7885 Reviewed-by: Aravinda VK Reviewed-by: Venky Shankar Tested-by: Venky Shankar --- geo-replication/syncdaemon/gsyncd.py | 1 + 1 file changed, 1 insertion(+) (limited to 'geo-replication/syncdaemon/gsyncd.py') diff --git a/geo-replication/syncdaemon/gsyncd.py b/geo-replication/syncdaemon/gsyncd.py index 7d463ad23f3..7ddd51267a6 100644 --- a/geo-replication/syncdaemon/gsyncd.py +++ b/geo-replication/syncdaemon/gsyncd.py @@ -227,6 +227,7 @@ def main_i(): op.add_option('--ignore-deletes', default=False, action='store_true') op.add_option('--isolated-slave', default=False, action='store_true') op.add_option('--use-rsync-xattrs', default=False, action='store_true') + op.add_option('--pause-on-start', default=False, action='store_true') op.add_option('-L', '--log-level', metavar='LVL') op.add_option('-r', '--remote-gsyncd', metavar='CMD', default=os.path.abspath(sys.argv[0])) -- cgit