look for needs_restarted file

This commit is contained in:
m0duspwnens
2024-01-16 17:22:09 -05:00
parent dff06cb085
commit eeb249e00d

View File

@@ -8,7 +8,7 @@
# if this script isn't already running # if this script isn't already running
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
NEEDS_RESTART=$(cat /var/log/sostatus/needs-restarted) NEEDS_RESTART=$(cat /var/log/sostatus/needs_restarted)
echo "os restart=$NEEDS_RESTART" echo "os restart=$NEEDS_RESTART"