Customizing systemd services
The following example shows the generated service unit file:
instances/auth/airlock-iam-auth.service
Terminal box
[Unit]
Description=Airlock IAM - auth
[Service]
Type=simple
User=airlock
WorkingDirectory=/home/airlock/iam
ExecStart=/opt/airlock-iam-8.0/bin/iam run -i auth
Environment='IAM_CONFIG_ROOT=/home/airlock/iam/'
Environment='JAVA_OPTS=-Xmx8G'
[Install]
WantedBy=multi-user.target
- Launching the Airlock IAM application simply launches a process. This means that the service type is “simple”.
- Command line options can be added to “ExecStart=”
- Environment variables can be set using “Environment=”