Simplification unité systemd

This commit is contained in:
mtrossevin 2023-12-12 16:25:44 +01:00
parent 3a1a16a39d
commit 20ab795416

View file

@ -19,12 +19,12 @@ Description=Languagetool HTTP server
[Service]
Type=simple
PIDFile=/run/language-tool.pid
Restart=always
# XXX "--config /dev/null" is a workaronud from https://forum.languagetool.org/t/self-hosted-languagetool-server-and-chrome-add-on/9519/4
ExecStart=/usr/bin/java -cp /opt/languagetool/languagetool-server.jar org.languagetool.server.HTTPServer --port 8081 --allow-origin --config /dev/null
ExecReload=/bin/kill -HUP $MAINPID
ExecStop=/bin/kill -QUIT $MAINPID
# Successfull exit on SIGTERM for most java process, could also use `KillSignal=SIGQUIT`
SuccessExitStatus=143
DynamicUser=yes
[Install]