Skip to content

Commit d9d95c6

Browse files
committed
fix: remove redundant service stop command during installation and restart service instead
1 parent 74a91e2 commit d9d95c6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ clean:
2222

2323
install: build
2424
@echo "Installing $(PROJECT_NAME)..."
25-
systemctl stop $(PROJECT_NAME)
2625
install -d $(CONFIG_DIR)
2726
install -m 755 $(PROJECT_NAME) $(INSTALL_DIR)/$(PROJECT_NAME)
2827
@if [ ! -f $(CONFIG_DIR)/config.yaml ]; then \
@@ -34,7 +33,7 @@ install: build
3433
install -m 644 packaging/$(PROJECT_NAME).service $(SYSTEMD_DIR)/$(PROJECT_NAME).service
3534
systemctl daemon-reload
3635
systemctl enable $(PROJECT_NAME)
37-
systemctl start $(PROJECT_NAME)
36+
systemctl restart $(PROJECT_NAME)
3837
@echo "Installation complete. Service $(PROJECT_NAME) is running and enabled on boot."
3938

4039
uninstall:

0 commit comments

Comments
 (0)