Skip to content

Commit

Permalink
manage: move pid file write to before is_supported_system check
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Apr 7, 2024
1 parent 9063a05 commit 770bcf8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manage
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,9 @@ $app"
exit 0
fi
fi #past this point, this instance is acting as the daemon.

#write my own PID to the pid file
echo $$ > "${DIRECTORY}/data/manage-daemon/pid"

#check if hardware and OS is supported
if [ "$supported" == "yes" ] || [ "$supported" == "no" ]; then
Expand All @@ -408,9 +411,6 @@ $app"
fi
fi

#write my own PID to the pid file
echo $$ > "${DIRECTORY}/data/manage-daemon/pid"

#Display a list of actions and their current status.
#This list is updated with new information as time progresses.
#Another named pipe is created to refresh the yad list later.
Expand Down

0 comments on commit 770bcf8

Please sign in to comment.