From d06d50a908a70c853c234a04563bb89cd202c53a Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 13 May 2022 12:40:14 +0200 Subject: [PATCH] slight changes to service files --- ArtificialAutism/discord_autismbot.service | 2 +- AutismBotIngame/autismrunner@.service | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ArtificialAutism/discord_autismbot.service b/ArtificialAutism/discord_autismbot.service index aa3a86b7..52dbe74d 100644 --- a/ArtificialAutism/discord_autismbot.service +++ b/ArtificialAutism/discord_autismbot.service @@ -6,7 +6,7 @@ User=nonroot Group=nonroot WorkingDirectory=/home/nonroot/autism_bot Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/jvm/jdk-17/bin -ExecStart=/usr/lib/jvm/jdk-17/bin/java -Xmx5900M -jar /home/nonroot/autism_bot/ArtificialAutism-1.0.jar +ExecStart=/usr/lib/jvm/jdk-17/bin/java -Xmx4900M -jar /home/nonroot/autism_bot/ArtificialAutism-1.0.jar Restart=on-failure RestartSec=10 diff --git a/AutismBotIngame/autismrunner@.service b/AutismBotIngame/autismrunner@.service index b021ebd2..340fb93b 100644 --- a/AutismBotIngame/autismrunner@.service +++ b/AutismBotIngame/autismrunner@.service @@ -1,5 +1,6 @@ [Unit] Description=autism_runner%i +After=network.target [Service] User=autismbot%i @@ -7,11 +8,8 @@ Group=autismbot%i WorkingDirectory=/home/autismbot%i/ze_runner Environment=PATH=/home/autismbot%i/ze_runner/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games ExecStart=/home/autismbot%i/ze_runner/run_autismbot.sh -Restart=on-failure -RestartSec=10 - -#Restart=always +Restart=always +RuntimeMaxSec=43200 [Install] WantedBy=default.target -