From d47f8f51524f2128b58fa7d7286624c807d14c10 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 22 Jul 2024 13:51:59 -0400 Subject: [PATCH] updated naming --- install.sh | 14 +++++++------- power-exporter.js => ups-exporter.js | 0 power-exporter.service => ups-exporter.service | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) rename power-exporter.js => ups-exporter.js (100%) rename power-exporter.service => ups-exporter.service (70%) diff --git a/install.sh b/install.sh index 107b74e..9bd9a38 100755 --- a/install.sh +++ b/install.sh @@ -13,17 +13,17 @@ fi # Setup exporter echo "Installing Exporter..." -cp power-exporter.js /usr/local/bin/power-exporter.js -chmod +x /usr/local/bin/power-exporter.js +cp ups-exporter.js /usr/local/bin/ups-exporter.js +chmod +x /usr/local/bin/ups-exporter.js # Setup service echo "Stting Up Service..." -cp power-exporter.service /etc/systemd/system/power-exporter.service -chmod +x /etc/systemd/system/power-exporter.service -systemctl enable power-exporter -systemctl restart power-exporter +cp ups-exporter.service /etc/systemd/system/ups-exporter.service +chmod +x /etc/systemd/system/ups-exporter.service +systemctl enable ups-exporter +systemctl restart ups-exporter echo "Done!" sleep 1 echo "" -journalctl -u power-exporter -n 1 +journalctl -u ups-exporter -n 1 diff --git a/power-exporter.js b/ups-exporter.js similarity index 100% rename from power-exporter.js rename to ups-exporter.js diff --git a/power-exporter.service b/ups-exporter.service similarity index 70% rename from power-exporter.service rename to ups-exporter.service index 6fb67b6..bd98b58 100644 --- a/power-exporter.service +++ b/ups-exporter.service @@ -3,7 +3,7 @@ Description=Export UPS metrics to webpage for scraping After=network.target [Service] -ExecStart=/root/.bun/bin/bun /usr/local/bin/power-exporter.js +ExecStart=/root/.bun/bin/bun /usr/local/bin/ups-exporter.js Restart=always [Install]