Skip to content

Commit

Permalink
fix service check
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Nov 17, 2023
1 parent c374014 commit 0cd94b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion installation/includes/02_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ check_service_state() {
local option="$3" # optional, dont't quote in next call!
echo "Verify service ${option} ${service} is ${desired_state}"

local actual_state=$(systemctl show -p ActiveState --value ${option} ${service})
local actual_state=$(systemctl is-active ${option} ${service})
if [[ ! "${actual_state}" == "${desired_state}" ]]; then
exit_on_error "ERROR: service ${option} ${service} is not ${desired_state} (state: ${actual_state})."
fi
Expand Down

0 comments on commit 0cd94b5

Please sign in to comment.