slight changes to service files
This commit is contained in:
parent
a9ce7a6fea
commit
d06d50a908
@ -6,7 +6,7 @@ User=nonroot
|
|||||||
Group=nonroot
|
Group=nonroot
|
||||||
WorkingDirectory=/home/nonroot/autism_bot
|
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
|
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
|
Restart=on-failure
|
||||||
RestartSec=10
|
RestartSec=10
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=autism_runner%i
|
Description=autism_runner%i
|
||||||
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=autismbot%i
|
User=autismbot%i
|
||||||
@ -7,11 +8,8 @@ Group=autismbot%i
|
|||||||
WorkingDirectory=/home/autismbot%i/ze_runner
|
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
|
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
|
ExecStart=/home/autismbot%i/ze_runner/run_autismbot.sh
|
||||||
Restart=on-failure
|
Restart=always
|
||||||
RestartSec=10
|
RuntimeMaxSec=43200
|
||||||
|
|
||||||
#Restart=always
|
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=default.target
|
WantedBy=default.target
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user