slight changes to service files

This commit is contained in:
jenz 2022-05-13 12:40:14 +02:00
parent a9ce7a6fea
commit d06d50a908
2 changed files with 4 additions and 6 deletions

View File

@ -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

View File

@ -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