Skip to content

Commit

Permalink
Merge pull request #317 from MRCIEU/rjh_rhel8
Browse files Browse the repository at this point in the history
fix: disable apachectl status to allow deploys to continue
  • Loading branch information
rjhenry authored Sep 4, 2024
2 parents 8681940 + f42b8fd commit 822fbc9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion deploy/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,15 @@ def restart_apache(env="dev", use_local_mode=False, run_checks=True, project_dir

caller("sudo /sbin/apachectl configtest")
caller("sudo /sbin/apachectl restart")
caller("sudo /sbin/apachectl status")
# Commented to disable.
# Unfortunately, on RHEL 8, this pipes into `less` and that then waits for
# user input to continue (as `less` is paging the long-line output of
# apachectl status). As there's no practical way to pass `--no-pager` to
# the systemctl status call that underlies the apachectl call, skip it for
# the time being.
# TODO: Either stop this being paged or switch to `systemctl` calls
# directly to allow for passing `--no-pager`.
# caller("sudo /sbin/apachectl status")
if run_checks:
toggled_maintenance_mode = False
if _exists_local(project_dir + "var/www/_MAINTENANCE_", use_local_mode):
Expand Down

0 comments on commit 822fbc9

Please sign in to comment.