Starting up Lucidworks Fusion 2.x automatically on a single CentOS 6.6 server is tricky, because the Fusion 2.1 Users Guide assumes you are using Ubuntu Linux and Upstart scripts. On CentOS or Red Hat Linux, you’ll have to roll your own.

This assumes you are starting Fusion as a non-root user, and you already know how to run the the start, stop, restart and status commands are really simple sh files in the /opt/fusion/bin directory. Here are the steps that worked for me:

Create init script

sudo nano /etc/init.d/fusion

Add commands to script

#!/bin/bash 
# description: Fusion Startup 
# processname: fusion 
# chkconfig: 234 20 80 
# by max.derungs@providence.org 
FUSION_CMD=/opt/fusion/bin/fusion 
# Source the function library for daemon. 
. /etc/init.d/functions 
# daemons 
case "$1" in 
start) 
daemon --check fusion $FUSION_CMD start 
;; 
stop) 
daemon --check fusion $FUSION_CMD stop 
;; 
status) 
daemon --check fusion $FUSION_CMD status 
;; 
restart) daemon --check fusion $FUSION_CMD restart 
;; 
*) 
echo $"Usage: $0 {start|stop|restart|status}" 
esac
exit 0

Set permissions of and make executable

sudo chmod 755 /etc/init.d/fusion

Setup chkconfig utility to start service at boot time

sudo /sbin/chkconfig --add fusion sudo /sbin/chkconfig --level 234 fusion on sudo /sbin/chkconfig --list fusion

Test

sudo service fusion start