Service: Restart on failure

This commit is contained in:
Daniel Skýpala 2024-04-02 13:22:04 +02:00
parent ca2b2c45a4
commit 37a6ba07e8

View file

@ -9,6 +9,8 @@ ExecStart=/srv/hrochobot/bin/hrochobot
Environment=HROCHOBOT_DATA=/data/hrochobot Environment=HROCHOBOT_DATA=/data/hrochobot
Environment=HROCHOBOT_ETC=/data/hrochobot Environment=HROCHOBOT_ETC=/data/hrochobot
Environment=HROCHOBOT_LOG=/data/log Environment=HROCHOBOT_LOG=/data/log
Restart=on-failure
RestartSec=5min
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target