-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hw-mgmt: scripts: Added hw-mgmt done WatchDog. #1298
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
usr/usr/bin/hw-management-done.sh
Outdated
# | ||
source hw-management-helpers.sh | ||
|
||
trace_udev_events "hw-mngmt done called" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is meant for udev events tracing only. Use log_info() instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Fixed.
usr/usr/bin/hw-management-done.sh
Outdated
current_time=$(date +%s%3N) | ||
|
||
# Read the last reset time atomically. | ||
if [[ -f "$WATCHDOG_RESET_FILE" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change the name from watchdog to something like monitor, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vadimp-nvidia @ciju-nvidia What is your decision?
wd/monitor?
usr/usr/bin/hw-management-done.sh
Outdated
# Update the status file. | ||
echo "1" > "$WATCHDOG_STATUS_FILE" | ||
# Update syslog. | ||
logger "hw-management script done!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use log_info()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
aa30ff4
to
12a87b1
Compare
7842bdf
to
2925a60
Compare
Signed-off-by: Roy Cohen <[email protected]>
c8247e5
to
c0656ae
Compare
Please review @ciju-nvidia @oleksandrivantsiv @oleksandrivantsiv @mshych @felixradensky |
This PR adds a WD, for tracking symbolic link creation.