sync check/fix from tahoe
Some checks failed
Spell Check / spellcheck (push) Has been cancelled

This commit is contained in:
Allen Golbig
2026-01-29 11:52:11 -05:00
parent a42a211eb1
commit be5491f565

View File

@@ -5,12 +5,24 @@ discussion: |
NOTE: The built in web server service is disabled at startup by default macOS. NOTE: The built in web server service is disabled at startup by default macOS.
check: | check: |
/bin/launchctl print-disabled system | /usr/bin/grep -c '"org.apache.httpd" => disabled' result="FAIL"
enabled=$(/bin/launchctl print-disabled system | /usr/bin/grep '"org.apache.httpd" => enabled')
running=$(/bin/launchctl print system/org.apache.httpd 2>/dev/null)
if [[ -z "$running" ]] && [[ -z "$enabled" ]]; then
result="PASS"
elif [[ -n "$running" ]]; then
result=result+" RUNNING"
elif [[ -n "$enabled" ]]; then
result=result+" ENABLED"
fi
echo $result
result: result:
integer: 1 string: PASS
fix: | fix: |
[source,bash] [source,bash]
---- ----
/usr/sbin/apachectl stop 2>/dev/null
/bin/launchctl disable system/org.apache.httpd /bin/launchctl disable system/org.apache.httpd
---- ----
references: references: