Installation

Initial Installation

Database

  • Connect to the sbcs main database and create the stm schema. Exit afterwards (e.g. using Ctrl+d)
    psql --host=localhost --user=sbcs --db=sbcs
    CREATE SCHEMA stm;

Smart-BCS

  • Install the Status Machine Service
    apt install sbcs-sm
  • Edit the Status Machine Service configuration file at /etc/ecm4u/sbcs-sm/config
    
    # Host of the DB server.
    SM_DB_HOST=postgresql

User to access the DB database.

SM_DB_USER=sbcs

Password to access the DB database.

SM_DB_PASSWORD=3KS2AfjdnwZU9dVAk92dY7v7JeVfnoaTmffJ

Name of the DB database.

SM_DB_DB=sbcs

Any options to append to the JDBC URL, must include a leading '?'.

SM_DB_OPTIONS=currentSchema=stm

* Create required tables in the `stm` schema

sbcs-sm-migrate migrate

* Start the Status Machine Service

systemctl start sbcs-sm



## Upgrading

TODO