Run resilient-circuits as a service
Configure resilient-circuits to run it as a systemd service.
Optionally, you can set up resilient-circuits as a systemd service to start automatically at system boot:
Open a terminal session, log in to IBM Resilient with SSH, and create a systemd service configuration file for resilient-circuits:
vi/etc/systemd/system/resilient_circuits.servicePopulate the empty file with the following details:
The following service configuration file example assumes that:
You log in to IBM Resilient with the resadmin user.
The IBM Resilient app.config file is stored in the default location: /home/resadmin/.resilient
All examples feature mock values.
Make sure paths and other values you set in the service configuration file are relevant to your environment.
[Unit]Description=Resilient Circuits ServiceAfter=resilient.serviceRequires=resilient.service[Service]Type=simpleUser=resadminWorkingDirectory=/home/resadminExecStart=/usr/local/bin/resilient-circuits runRestart=alwaysTimeoutSec=10Environment=APP_CONFIG_FILE=/home/resadmin/.resilient/app.configEnvironment=APP_LOCK_FILE=/home/resadmin/.resilient/resilient_circuits.lock[Install]WantedBy=multi-user.targetAssign read and write permissions to the resadmin user and the resadmin group, and read-only permission to other users and groups:
sudochmod664/etc/systemd/system/resilient_circuits.serviceEnable the resilient-circuits service to automatically start at system boot:
systemctlenableresilient_circuitsReboot the system to start the service automatically.