remade from screen to systemctl service

This commit is contained in:
jenz 2022-04-02 13:26:47 +02:00
parent 64d7611576
commit 1b02d1ac4d

View File

@ -0,0 +1,16 @@
[Unit]
Description=autismbot Discord
[Service]
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
Restart=on-failure
RestartSec=10
#Restart=always
[Install]
WantedBy=default.target