Configure Linux Service
From version 1.9 you can configure Import Station as a service in Linux.
See https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html for more info
To do just follow these steps:
- Create a file called import-station.service inside /etc/systemd/system folder
- File content should be:
[Unit] Description=import-station After=syslog.target [Service] User=userToExecuteImportStation ExecStart=/path/to/app/import-station.jar SuccessExitStatus=143 [Install] WantedBy=multi-user.target
- To flag the application to start automatically on system boot, use the following command:
systemctl enable import-station.service