Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:finzzz/bucktrix
Browse files Browse the repository at this point in the history
  • Loading branch information
finzzz committed Aug 1, 2021
2 parents 119b078 + d142b52 commit 9598151
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion examples/bucktrix.service
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
[Unit]
Description=Bucktrix the bot
After=network-online.target
Wants=network-online.target

[Service]
Restart=on-failure
RestartSec=5s
User=debian
Group=debian
WorkingDirectory=/home/debian/
ExecStart=/home/debian/bucktrix serve

[Install]
WantedBy=multi-user.target
WantedBy=multi-user.target
4 changes: 2 additions & 2 deletions scripts/smartctl_notif.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ echo "" > /dev/shm/smartstat

for i in "${DISK[@]}"; do
echo "/dev/sd$i" >> /dev/shm/smartstat
SMART=$(smartctl --attributes -H /dev/sd"$i")
SMART=$(/usr/sbin/smartctl --attributes -H /dev/sd"$i")
for j in "${ATTRS[@]}"; do
echo "$SMART" | grep -E "$j" >> /dev/shm/smartstat
done
echo "---" >> /dev/shm/smartstat
done

(cd "$(dirname $0)" && ./bucktrix send "$(cat /dev/shm/smartstat)")
rm /dev/shm/smartstat
rm /dev/shm/smartstat

0 comments on commit 9598151

Please sign in to comment.