basic_bot.bb_start
bb_start is a script to start services in the background. It reads a
list of services from the basic_bot.yml
file unless a
--file filename
is specified on the command line.
For each service in the config file, bb_start:
- starts the service in the background detached from the terminal.
- writes the PID of the service to a file in the 'pids' directory.
The PID file is used by the
bb_stop
. - rotates log files for each service. If the log file already exists,
it is renamed to
service_name.log.1
and the previous is...log.2
, etc. stdout
andstderr
are redirected to a log files in the 'logs' directory with the name of the service from the configuration file.
For more information on usage: