self-restarting services

Self-restarting services

It's critical to make sure your services always restart without intervention. This ensures that your application will be available again after a reboot or unexpected shutdown.

Depending on the technology your application uses, there are different ways to achieve this. Below are the instructions for the technologies supported by TurboStack:

Systemd User Service

For PHP frameworks like Laravel, Magento and Akeneo, you can use systemd user services to automatically restart your application.

Systemd User Service

PM2

For Node.js based applications, you can use PM2 to automatically restart your application.

PM2

Docker

Docker offers integrated support for automatic restarts. Docker