Configure Linux Service
From version 1.9, you can configure Import Station as a service on Linux.
See https://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html for more info
To do this, just follow these steps:
- Create a file called import-station.service inside the /etc/systemd/system folder
- The 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 enable the application to start automatically on system boot, use the following command:
systemctl enable import-station.service