From 9702978d0c8a10d2597b707031b1a97627597718 Mon Sep 17 00:00:00 2001 From: KernelSailor Date: Mon, 29 Dec 2025 11:46:51 +0100 Subject: [PATCH] rename snowflake systemd service --- ct/tor-snowflake.sh | 11 ++++++----- install/tor-snowflake-install.sh | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/ct/tor-snowflake.sh b/ct/tor-snowflake.sh index 5fea776e9..c27e8a3cc 100644 --- a/ct/tor-snowflake.sh +++ b/ct/tor-snowflake.sh @@ -35,8 +35,9 @@ function update_script() { RELEASE=$(curl -fsSL https://gitlab.torproject.org/api/v4/projects/tpo%2Fanti-censorship%2Fpluggable-transports%2Fsnowflake/releases | jq -r '.[0].tag_name' | sed 's/^v//') VERSION_FILE="/home/${SNOWFLAKEUSER}/.${APP}_version" if [[ ! -f "${VERSION_FILE}" ]] || [[ "${RELEASE}" != "$(cat "${VERSION_FILE}")" ]]; then - systemctl stop snowflake-proxy - msg_ok "Stopped Service" + msg_info "Stopping ${APP} Service" + systemctl stop ${APP} + msg_ok "Stopped ${APP} Service" setup_go @@ -50,9 +51,9 @@ function update_script() { echo "${RELEASE}" | sudo -H -u ${SNOWFLAKEUSER} bash -c "cd ~ && tee .${APP}_version >/dev/null" msg_ok "Updated ${APP} to v${RELEASE}" - msg_info "Starting Service" - systemctl start snowflake-proxy - msg_ok "Started Service" + msg_info "Starting ${APP} Service" + systemctl start ${APP} + msg_ok "Started ${APP} Service" msg_ok "Updated successfully!" else msg_ok "No update required. ${APP} is already at v${RELEASE}." diff --git a/install/tor-snowflake-install.sh b/install/tor-snowflake-install.sh index 4db5cb7fe..f5b917ce5 100644 --- a/install/tor-snowflake-install.sh +++ b/install/tor-snowflake-install.sh @@ -33,7 +33,7 @@ echo "${RELEASE}" | sudo -H -u ${SNOWFLAKEUSER} bash -c "cd ~ && tee .${APP}_ver msg_ok "Built Snowflake Proxy v${RELEASE}" msg_info "Creating Service" -cat </etc/systemd/system/snowflake-proxy.service +cat </etc/systemd/system/${APP}.service [Unit] Description=Snowflake Proxy Service Documentation=https://snowflake.torproject.org/ @@ -52,7 +52,7 @@ RestartSec=10 [Install] WantedBy=multi-user.target EOF -systemctl enable -q --now snowflake-proxy +systemctl enable -q --now ${APP} msg_ok "Created Service" motd_ssh