chusiang / mysql-master-master

Automatically exported from code.google.com/p/mysql-master-master
GNU General Public License v2.0
1 stars 1 forks source link

Patch to add FreeBSD support (main functionality, no LVM staff yet) #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Here's the patch to mmm-1.0, which adds FreeBSD support.
Changed files:
install.pl
lib/agent_commands.pm
lib/check_modules/ping.pm
lib/ifconfig.pm

Added files:
bin/sys/freebsd_uptime_sec (simple sh script to get uptime in seconds)

To get mmm installed on freebsd, follow these steps:
1. Patch original mmm-1.0 with provided patch :)
2. Copy attached script freebsd_uptime_sec to bin/sys
3. Recompile contrib/fping and contrib/send_arp (you may need to install
port /usr/ports/net/libnet and adjust Makefile to get send_arp compiled)
4. Make sure your perl compiled with threads support. By default it's not,
so do as root:
# cd /usr/ports/lang/perl5.8 && make WITH_THREADS=yes
# make deinstall && make install clean
# portupgrade --force /var/db/pkg/p5*
5. Run install.pl

That's it. Now configure mmm the way you want it to.

P.S. LVM related fixes are still in progress, but main functionality
(monitor and agents) should work properly.

Original issue reported on code.google.com by meph...@gmail.com on 20 Nov 2008 at 10:12

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by baron.schwartz on 15 Jan 2009 at 2:05

GoogleCodeExporter commented 9 years ago
Any plans to patch V2?

Original comment by ben%skid...@gtempaccount.com on 30 Nov 2010 at 5:55