Customizing services
7.1.1.2. Customizing systemd services

The following example shows the generated service unit file:

instances/auth/airlock-iam-auth.service

copy
[Unit]
Description=Airlock IAM - auth
 
[Service]
Type=simple
User=airlock
WorkingDirectory=/home/airlock/iam
ExecStart=/opt/airlock-iam-7.6/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="