From 58d893f04463fd151030179c28798b55296be042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobi=20Sch=C3=A4fer?= Date: Sun, 7 May 2023 01:29:35 +0200 Subject: [PATCH] Create helma.service Add SystemD unit file with reasonable settings See --- src/dist/extras/helma.service | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/dist/extras/helma.service diff --git a/src/dist/extras/helma.service b/src/dist/extras/helma.service new file mode 100644 index 00000000..916c2d86 --- /dev/null +++ b/src/dist/extras/helma.service @@ -0,0 +1,23 @@ +[Unit] +Description = Helma Object Publisher +After = syslog.target network.target +StartLimitIntervalSec = 0 + +[Service] +Restart = always +RestartSec = 1 +SuccessExitStatus = 143 +Type = simple +WorkingDirectory = /opt/helma + +ExecStart = /usr/bin/java -server \ + -Dfile.encoding=UTF-8 \ + -Djava.awt.headless=true \ + -Xms1024m -Xmx2048m \ + -jar launcher.jar \ + -w 8080 -x 8081 + +ExecStop = /bin/kill -15 $MAINPID + +[Install] +WantedBy = multi-user.target