5.15.2. Running as a Linux service

Under Linux, the BELTS service can be installed in /etc/init.d by copying the file belts_init.sh from the $BELTS_HOME/bin directory. Use chkconfig to make BELTS start on startup.

$ cp $BELTS_HOME/bin/belts_init.sh /etc/init.d/belts
$ chkconfig --add belts

Start the service:

$ service belts start

Stop the service:

$ service belts stop

Note that the BELTS init script checks for the BELTS_HOME environment variable and, if not set, assumes /usr/local/belts.