Problem:
I would like for FileReplicationPro to startup with the system startup. How do I do this in Linux?
Solution:
Current Versions and all since 6.5.3 of FRP using the FRPRep.sh and other .sh scripts in the /FileReplicaitonFolder
For Example in Centos 6.x Add the following line to the bottom of /etc/rd.d/rc.local file. Change username to the correct user name for your FRP installation.
cd /home/username/FileReplicationPro && /home/username/FileReplicationPro/FRPRep.sh
On other versions of Linux you may need to locate the correct startup file location and then add an entry as above edited to reflect the path of the FRP installation.e
Versions prior to FRP 6.5.3
Start Up Scripts for Linux with older FRP versions that do not use the .sh scripts found after install in the /FileReplicaitonPro folder for startup. Newer versions see below.
Typically, the user can put these scripts in /etc/conf.d/local.start or /etc/rc.d/rc.local and /etc/conf.d/local.stop or equivalent.
All servers except for your ONE Management Server will be replication only nodes.
Replication node commands:
-----------------------------------------
# Start FRP Replication Server
nohup /path/to/FRPInstall/FRPRep &
These are the commands to use on your ONE and ONLY Management server
Management Server commands:
-----------------------------------
# Start FRP Replication Server first
nohup /path/to/FRPInstall/FRPRep &
sleep 5
# Start FRP Helper next
nohup /path/to/FRPInstall/FRPHelp &
sleep 5
# Now, start FRP Management Server
nohup /path/to/FRPInstall/FRPMgmt &
Stop Scripts
------------------
#Stop FRP Helper
nohup /path/to/FRPInstall/StopHelper &
#Stop FRP Configuration Server
nohup /path/to/FRPInstall/StopConfigurationServer &
#Stop FRP Replication Server
nohup /path/to/FRPInstall/StopFileReplicationPro &
--------------
On older systems an error in locating the /lib/libc.so.6 file may occur during startup of FRP. Here is the solution to the /lib/libc.so.6 file not found error.