1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lemmy_ynh.git synced 2024-09-03 19:36:09 +02:00

restart on failure

This commit is contained in:
Éric Gaspar 2023-10-03 08:51:28 +02:00
parent 52d1db3a09
commit a28ed29ba3
2 changed files with 4 additions and 0 deletions

View file

@ -14,6 +14,8 @@ WorkingDirectory=__INSTALL_DIR__/lemmy-ui/
ExecStart=__YNH_NODE__ dist/js/server.js ExecStart=__YNH_NODE__ dist/js/server.js
StandardOutput=append:/var/log/__APP__/__APP__-ui.log StandardOutput=append:/var/log/__APP__/__APP__-ui.log
StandardError=inherit StandardError=inherit
Restart=on-failure
RestartSec=1s
# Sandboxing options to harden security # Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these # Depending on specificities of your service/app, you may need to tweak these

View file

@ -11,6 +11,8 @@ WorkingDirectory=__INSTALL_DIR__/lemmy/
ExecStart=__INSTALL_DIR__/lemmy/lemmy ExecStart=__INSTALL_DIR__/lemmy/lemmy
StandardOutput=append:/var/log/__APP__/__APP__.log StandardOutput=append:/var/log/__APP__/__APP__.log
StandardError=inherit StandardError=inherit
Restart=on-failure
RestartSec=1s
# Sandboxing options to harden security # Sandboxing options to harden security
# Depending on specificities of your service/app, you may need to tweak these # Depending on specificities of your service/app, you may need to tweak these