mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 10:22:02 +00:00
fixed error in naming of service
This commit is contained in:
parent
4a07b29728
commit
3e423416a8
2 changed files with 3 additions and 3 deletions
2
setup.sh
2
setup.sh
|
|
@ -247,7 +247,7 @@ if [[ "$(uname)" == "Linux" ]]; then
|
||||||
echo "⚙️ Installing systemd service for Linux..."
|
echo "⚙️ Installing systemd service for Linux..."
|
||||||
sudo cp timeturner.service /etc/systemd/system/
|
sudo cp timeturner.service /etc/systemd/system/
|
||||||
sudo systemctl daemon-reload
|
sudo systemctl daemon-reload
|
||||||
sudo systemctl enable tim_turner.service
|
sudo systemctl enable timeturner.service
|
||||||
echo "✅ Systemd service installed and enabled."
|
echo "✅ Systemd service installed and enabled."
|
||||||
else
|
else
|
||||||
echo "⚠️ Skipping systemd service installation on non-Linux OS."
|
echo "⚠️ Skipping systemd service installation on non-Linux OS."
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ cargo build --release
|
||||||
|
|
||||||
# 3. Stop the currently running service to release the file lock
|
# 3. Stop the currently running service to release the file lock
|
||||||
echo "🛑 Stopping TimeTurner service..."
|
echo "🛑 Stopping TimeTurner service..."
|
||||||
sudo systemctl stop timeturner.service
|
sudo systemctl stop timeturner.service || true
|
||||||
|
|
||||||
# 4. Copy the new binary to the installation directory
|
# 4. Copy the new binary to the installation directory
|
||||||
echo "🚀 Deploying new binary..."
|
echo "🚀 Deploying new binary..."
|
||||||
sudo cp target/release/timeturner /opt/timeturner/timeturner
|
sudo cp target/release/ntp_timeturner /opt/timeturner/timeturner
|
||||||
|
|
||||||
# 5. Restart the service with the new binary
|
# 5. Restart the service with the new binary
|
||||||
echo "✅ Restarting TimeTurner service..."
|
echo "✅ Restarting TimeTurner service..."
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue