redeploy service

This commit is contained in:
SimonFJ20 2025-03-07 11:40:30 +01:00
parent d9dc6e67b7
commit a9e5f01018
3 changed files with 8 additions and 7 deletions

View File

@ -4,7 +4,7 @@ SERVICE=h4backend.service
set -xe
sudo cp deploy/$SERVICE /etc/systemd/$SERVICE
sudo cp deploy/$SERVICE /etc/systemd/system/$SERVICE
systemctl daemon-reload
systemctl enable $SERVICE

View File

@ -1,9 +1,12 @@
#!/bin/sh
SERVICE=h4backend.service
set -xe
sh deploy/remove_service.sh
# avoid 'could not bind to socket' error
fuser -k 8080/tcp
git pull --rebase
cd backend
@ -11,7 +14,5 @@ make clean
make RELEASE=1
cd ..
systemctl --user stop $SERVICE
fuser -k 8080/tcp
systemctl --user start $SERVICE
sh deploy/install_service.sh

View File

@ -7,7 +7,7 @@ set -xe
systemctl stop $SERVICE
systemctl disable $SERVICE
sudo rm /etc/systemd/$SERVICE
sudo rm /etc/systemd/system/$SERVICE