remade from screen to systemctl service
This commit is contained in:
parent
64d7611576
commit
1b02d1ac4d
16
ArtificialAutism/discord_autismbot.service
Normal file
16
ArtificialAutism/discord_autismbot.service
Normal 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
|
Loading…
Reference in New Issue
Block a user