FIX: fix for writing log file.

This commit is contained in:
이수준 2023-11-07 16:05:06 +09:00
parent e1fef8878c
commit ce3511c89e
7 changed files with 6 additions and 3 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,6 @@
#!/bin/bash
sudo mkdir -p /etc/sdt/device-heartbeat
sudo cp device-heartbeat /usr/local/bin/
sudo cp device-heartbeat.service /etc/systemd/system/
sudo systemctl start device-heartbeat

View File

@ -5,10 +5,11 @@ set -e
if [ $(id -u) -ne 0 ]; then
echo "Please run as root. - sudo su"
exit
elif [ $1 == "help" ]; then
else
echo "Please input parameter. follow as:"
echo "Example) Organzation ID=58a311aa-f52a-40e3-af44-cdec82b9d0b7 SerialNumbe=ECN-SJ-TEST-001 Type=ecn"
exit
echo "Organzation ID=58a311aa-f52a-40e3-af44-cdec82b9d0b7"
echo "SerialNumber=ECN-SJ-TEST-001"
echo "Type=ecn"
fi
echo "If you need help, please enter follow as:"

View File

@ -1,5 +1,6 @@
#!/bin/bash
sudo mkdir -p /etc/sdt/process-checker
sudo cp process-checker /usr/local/bin/
sudo cp process-checker.service /etc/systemd/system/
sudo systemctl start process-checker

Binary file not shown.