diff options
author | Dingedi <64697405+dingedi@users.noreply.github.com> | 2022-04-08 09:51:52 +0200 |
---|---|---|
committer | P.J. Finlay <pjappdevelopment@gmail.com> | 2022-04-30 06:34:35 -0500 |
commit | 53f3bdfeb65bcd3b35168053a3b9084394821be8 (patch) | |
tree | 8a03ff5e84cddcdd2b17d649298e29c1dba8efc4 /libretranslate.service | |
parent | 69ea6ef072e3e9a69a7a3af4f7b91302519df5af (diff) |
restart the process if it crash
Diffstat (limited to 'libretranslate.service')
-rw-r--r-- | libretranslate.service | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libretranslate.service b/libretranslate.service index 10d5138..d422ccb 100644 --- a/libretranslate.service +++ b/libretranslate.service @@ -8,6 +8,10 @@ Group=www-data WorkingDirectory=/home/libretranslate/LibreTranslate Environment="PATH=/home/libretranslate/LibreTranslate/env/bin" ExecStart=/home/libretranslate/LibreTranslate/env/bin/gunicorn --workers 3 --bind unix:libretranslate.sock -m 007 wsgi:app +Restart=always +ExecReload=/bin/kill -s HUP $MAINPID +KillMode=mixed +TimeoutStopSec=1 [Install] WantedBy=multi-user.target |