walls-bot: Don't use Gradle to run process

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-03-22 14:40:25 +05:30
parent 3be59c0e3c
commit 0ff3378a41
No known key found for this signature in database
GPG key ID: 366D7BBAD1031E80

View file

@ -7,7 +7,8 @@ Restart=on-abort
Type=simple
User=bot
WorkingDirectory=/home/bot/walls-bot
ExecStart=/home/bot/walls-bot/gradlew run
ExecStartPre=/home/bot/walls-bot/gradlew --no-daemon build
ExecStart=/usr/bin/java -jar /home/bot/walls-bot/build/libs/wallsbot-0.1-all.jar
ExecReload=/bin/kill -USR1 $MAINPID
KillMode=mixed
KillSignal=SIGQUIT