Syncrify How-to Freenas 9.2.1

Status
Not open for further replies.

dabone

Dabbler
Joined
Aug 28, 2012
Messages
10
Ok, I had to reinstall syncrify for a client that was running on a older 8.2 freenas box and I thought I would share.

Just make a standard jail, then ssh in and jexec (jailnumber) csh.

pkg_add -v -r xtrans xproto xextproto javavmwrapper openjdk6-jre bash nano
mkdir /syncrify
cd /syncrify
wget http://synametrics.com/files/Syncrify/SyncrifyOther.tar.gz
tar -zxvf SyncrifyOther.tar.gz


Now edit the run.sh file and change the following line.


java -server -Xmx512m -cp $CP -DLoggingConfigFile=logconfig.xml com.synametrics.sradef.BootLoader &

to read

/usr/local/bin/java -server -Xmx512m -cp $CP -DLoggingConfigFile=logconfig.xml com.synametrics.sradef.BootLoader &

(You are just adding the location of java to the script file)



Now save the following script using the name syncrify to the /etc/rc.d directory


#!/bin/sh

. /etc/rc.subr
name="syncrify"
start_cmd="${name}_start"
stop_cmd=":"

syncrify_start(){
cd /syncrify
./run.sh
}
load_rc_config $name
run_rc_command "$1"



And add the following line to the end of /etc/rc.conf

syncrify_enable="YES"


Now just restart your jail to make sure it autostarts and syncrify will be available at IPADDRESS:5800


And Don't forget to add storage....

Later,
dabone
 
Status
Not open for further replies.
Top