feat: show update service status in UI
This commit is contained in:
5
Makefile
5
Makefile
@ -13,7 +13,7 @@ HEALTH_URL ?= http://$(HOST):$(PORT)/health
|
||||
TOKEN ?= $(shell awk -F= '/^SKD_AUTH_TOKEN=/{print $$2}' $(ENV_FILE) 2>/dev/null)
|
||||
KEEP_INSTALL_DIR ?= 1
|
||||
|
||||
.PHONY: install up down uninstall healthcheck update token
|
||||
.PHONY: install up down restart uninstall healthcheck update token
|
||||
|
||||
install:
|
||||
$(SUDO) env SERVICE_NAME=$(SERVICE) SERVICE_USER=$(SERVICE_USER) SERVICE_GROUP=$(SERVICE_GROUP) INSTALL_DIR=$(INSTALL_DIR) ./scripts/install.sh
|
||||
@ -24,6 +24,9 @@ up:
|
||||
down:
|
||||
$(SUDO) systemctl stop $(SERVICE).service
|
||||
|
||||
restart:
|
||||
$(SUDO) systemctl restart $(SERVICE).service
|
||||
|
||||
uninstall:
|
||||
-$(SUDO) systemctl stop $(SERVICE).service
|
||||
-$(SUDO) systemctl disable $(SERVICE).service
|
||||
|
||||
Reference in New Issue
Block a user