Blame SOURCES/cyrus-imapd-master_rename.patch

388f6b
diff --git a/Cassandane/Instance.pm b/cassandane/Cassandane/Instance.pm
388f6b
index 1561143..c60396e 100644
388f6b
--- a/Cassandane/Instance.pm
388f6b
+++ b/Cassandane/Instance.pm
388f6b
@@ -166,7 +166,7 @@ sub get_version
388f6b
     my $cyrus_master;
388f6b
     foreach my $d (qw( bin sbin libexec libexec/cyrus-imapd lib cyrus/bin ))
388f6b
     {
388f6b
-	my $try = "$cyrus_destdir$cyrus_prefix/$d/master";
388f6b
+	my $try = "$cyrus_destdir$cyrus_prefix/$d/cyrus-master";
388f6b
 	if (-x $try) {
388f6b
 	    $cyrus_master = $try;
388f6b
 	    last;
388f6b
diff --git a/Cassandane/Instance.pm b/Cassandane/Instance.pm
388f6b
index c60396e..7b2883a 100644
388f6b
--- a/Cassandane/Instance.pm
388f6b
+++ b/Cassandane/Instance.pm
388f6b
@@ -546,7 +546,7 @@ sub _pid_file
388f6b
 {
388f6b
     my ($self, $name) = @_;
388f6b
 
388f6b
-    $name ||= 'master';
388f6b
+    $name ||= 'cyrus-master';
388f6b
 
388f6b
     return $self->{basedir} . "/run/$name.pid";
388f6b
 }
388f6b
@@ -569,7 +569,7 @@ sub _list_pid_files
388f6b
     closedir(RUNDIR);
388f6b
 
388f6b
     @pidfiles = sort { $a cmp $b } @pidfiles;
388f6b
-    @pidfiles = ( 'master', grep { $_ ne 'master' } @pidfiles );
388f6b
+    @pidfiles = ( 'cyrus-master', grep { $_ ne 'cyrus-master' } @pidfiles );
388f6b
 
388f6b
     return @pidfiles;
388f6b
 }
388f6b
@@ -877,7 +877,7 @@ sub _start_master
388f6b
     # Now start the master process.
388f6b
     my @cmd =
388f6b
     (
388f6b
-	'master',
388f6b
+	'cyrus-master',
388f6b
 	# The following is added automatically by _fork_command:
388f6b
 	# '-C', $self->_imapd_conf(),
388f6b
 	'-l', '255',
388f6b
@@ -886,7 +886,7 @@ sub _start_master
388f6b
 	'-M', $self->_master_conf(),
388f6b
     );
388f6b
     if (get_verbose) {
388f6b
-	my $logfile = $self->{basedir} . '/conf/master.log';
388f6b
+	my $logfile = $self->{basedir} . '/conf/cyrus-master.log';
388f6b
 	xlog "_start_master: logging to $logfile";
388f6b
 	push(@cmd, '-L', $logfile);
388f6b
     }
388f6b
diff --git a/Cassandane/Instance.pm b/Cassandane/Instance.pm
388f6b
index 7b2883a..0c1e5fb 100644
388f6b
--- a/Cassandane/Instance.pm
388f6b
+++ b/Cassandane/Instance.pm
388f6b
@@ -1301,7 +1301,7 @@ sub send_sighup
388f6b
     return if ($self->{_stopped});
388f6b
     xlog "sighup";
388f6b
 
388f6b
-    my $pid = $self->_read_pid_file('master') or return;
388f6b
+    my $pid = $self->_read_pid_file('cyrus-master') or return;
388f6b
     kill(SIGHUP, $pid) or die "Can't send signal SIGHUP to pid $pid: $!";
388f6b
     return 1;
388f6b
 }