The following steps assume the midPoint installation in
/opt/midpoint directory, owned (both directory and its content) as (previously created) user
midpoint. The service will be started as user
midpoint and will listen on default TCP 8080 port.
Create a new file
/etc/systemd/system/midpoint.servicewith the following content:
Run the following commands to enable midpoint service:
Start midPoint as systemd service using the following command:
- You can monitor the startup in
/opt/midpoint/var/log/midpoint.log(standard midPoint log) or in
/var/log/syslog(the file name may vary; if systemd is used,
/opt/midpoint/var/log/midpoint.outis not used.
You can stop midPoint as systemd service using the following command:
To disable automatic midPoint startup/shutdown, use the following command:
If you wish to customize JVM parameters, just modify
ExecStart directive in the
midpoint.service file and restart midPoint.
Systemd allows you to specify service dependencies. For example to specify that midPoint requires PostgreSQL database (running as systemd service on the same host), just uncomment the lines
After. Systemd will start PostgreSQL before midPoint, and when PostgreSQL goes down, it will also automatically shutdown midPoint.