A service-file must be created, defining how the service should be started. The default directory for systemd services is "/etc/systemd/system"; services have the ".service" file name extension.
The CLI can be used to generate a systemd .service
file:
Here are some basic systemd commands you should familiarize yourself with:
If your config root directory (default: /home/airlock/iam) is on the root filesystem partition (/), you may enable the service file in-place, without copying:
systemctl enable '/home/airlock/iam/instances/auth/airlock-iam-auth.service'
Note that if the config root directory is not on the root filesystem partition, the symbolic links created by systemctl will break after a system reboot. To fix that, run the following commands to switch back to the copy-method shown above:
systemctl disable /home/airlock/iam/instances/auth/airlock-iam-auth.service cp /home/airlock/iam/airlock-iam-auth.service /etc/systemd/system/ systemctl enable -f airlock-iam-auth