diff --git a/conf/systemd.service b/conf/systemd.service index 934d1e4..e942943 100644 --- a/conf/systemd.service +++ b/conf/systemd.service @@ -1,5 +1,5 @@ [Unit] -Description=Komga: comics and mangas media server +Description=Komga server After=network.target [Service] @@ -7,7 +7,11 @@ Type=simple User=__APP__ Group=__APP__ WorkingDirectory=__FINALPATH__/ -ExecStart=/usr/bin/java -jar __FINALPATH__/app.jar --server.port=__PORT__ --server.servlet.context-path="__PATH__" >> /var/log/__APP__/__APP__.log 2>&1 +ExecStart=/usr/bin/java -jar -Xmx4g app.jar --server.port=__PORT__ --server.servlet.context-path="__PATH__/" +Restart=on-failure +RestartSec=10 +StandardOutput=null +StandardError=syslog [Install] WantedBy=multi-user.target diff --git a/scripts/install b/scripts/install index 32e8b46..5d7c64a 100755 --- a/scripts/install +++ b/scripts/install @@ -63,7 +63,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= # INSTALL DEPENDENCIES #================================================= -ynh_script_progression --message="Installing dependencies..." --time --weight=1 +ynh_script_progression --message="Installing dependencies..." --weight=1 ynh_install_app_dependencies $pkg_dependencies