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 set -xe
sudo cp deploy/$SERVICE /etc/systemd/$SERVICE sudo cp deploy/$SERVICE /etc/systemd/system/$SERVICE
systemctl daemon-reload systemctl daemon-reload
systemctl enable $SERVICE systemctl enable $SERVICE

View File

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

View File

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