systemd/walls-bot-rs: Pull from git before starting

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-02-20 23:44:29 +05:30
parent 2cbf1ecb88
commit 17744d88b5
No known key found for this signature in database
GPG key ID: B7843F823355E9B9

View file

@ -8,6 +8,7 @@ Type=simple
User=bot
EnvironmentFile=/home/bot/walls-bot-rs/env
WorkingDirectory=/home/bot/walls-bot-rs
ExecStartPre=/usr/bin/git pull origin master
ExecStart=/home/bot/.cargo/bin/cargo run
ExecReload=/bin/kill -USR1 $MAINPID
KillMode=mixed