From 36805ae6bbf24fbe1c4365f055bf0fc59c3b8da9 Mon Sep 17 00:00:00 2001 From: tteckster Date: Thu, 10 Oct 2024 09:50:54 -0400 Subject: [PATCH] Update tianji.sh switch to `systemd` --- ct/tianji.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/tianji.sh b/ct/tianji.sh index c58e739d..e8e83766 100644 --- a/ct/tianji.sh +++ b/ct/tianji.sh @@ -63,7 +63,7 @@ RELEASE=$(curl -s https://api.github.com/repos/msgbyte/tianji/releases/latest | if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Stopping ${APP} Service" - pm2 stop tianji >/dev/null 2>&1 + systemctl stop tianji msg_ok "Stopped ${APP} Service" msg_info "Updating ${APP} to ${RELEASE}" @@ -75,7 +75,7 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v msg_ok "Updated ${APP} to ${RELEASE}" msg_info "Starting ${APP}" - pm2 start tianji >/dev/null 2>&1 + systemctl start tianji msg_ok "Started ${APP}" msg_ok "Updated Successfully" else