Sha256: 97d1848faf94cfed9e68de72426a9f166a078b45dc05bb40befd4b194a9ddbc0

Contents?: true

Size: 720 Bytes

Versions: 2

Compression:

Stored size: 720 Bytes

Contents

#!/usr/bin/env ruby
#
# replication-helper  MySQL replication helper agent
#
# chkconfig: - 65 34
# description: MySQL replication helper agent
# processname: replication-helper
# config: /etc/replication-helper.conf
# pidfile: /var/run/replication-helper.pid
#

require 'rubygems'
require 'daemons'

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'mysql_replication_helper'

daemon_script_path = File.expand_path('../lib/mysql_replication_helper/daemon_launcher.rb', File.dirname(__FILE__))

if (!File.exist?(daemon_script_path))
  daemon_script_path = Gem.required_location('mysql_replication_helper','mysql_replication_helper/daemon_launcher.rb')
end    

Daemons.run(daemon_script_path)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
theworkinggroup-mysql-replication-helper-0.1.0 bin/replication-helper
theworkinggroup-mysql-replication-helper-0.2.0 bin/replication-helper