In a Linux production environment, Endeca Server can be started by
init from
inittab.
In a Linux development environment, Endeca Server can be started from
the command line. In a Linux production environment, however, Endeca recommends
that it be started by
init from
inittab. If the service crashes or is terminated,
init automatically restarts it.
The
inittab entry should be formatted like this:
es:2345:respawn:/bin/su - <endeca_user> -c "/absolute/path/to/start.sh"
where:
- es is the
inittab entry identifier.
- 2345 lists the
runlevels for which the specified action should be taken.
- respawn is the action
to be taken, which is that the process will be restarted whenever it
terminates.
- /bin/su specifies the
process to be executed. In this case, a non-root user will run the
start.sh command. It is a best practice to run
the Endeca Server as a user other than root.
- -c start.sh specifies
that the
start.sh command will be run, using the absolute
path to the command.