<commit_before>{%- from "horizon/map.jinja" import server with context -%}
#!/bin/bash -e

cat /srv/salt/pillar/horizon-server.sls | envsubst > /tmp/horizon-server.sls
mv /tmp/horizon-server.sls /srv/salt/pillar/horizon-server.sls

salt-call --local --retcode-passthrough state.highstate

{% for service in server.services %}
service {{ service }} stop || true
{% endfor %}

export APACHE_RUN_USER=horizon
export APACHE_RUN_GROUP=horizon
export APACHE_PID_FILE=/var/run/apache2/apache2.pid
export APACHE_RUN_DIR=/var/run/apache2
export APACHE_LOCK_DIR=/var/lock/apache2
export APACHE_LOG_DIR=/var/log/apache2

su horizon --shell=/bin/sh -c 'apachectl -DFOREGROUND'

{#-
vim: syntax=jinja
-#}<commit_msg>fix entrypoint service<commit_after>{%- from "horizon/map.jinja" import server with context -%}
#!/bin/bash -e

cat /srv/salt/pillar/horizon-server.sls | envsubst > /tmp/horizon-server.sls
mv /tmp/horizon-server.sls /srv/salt/pillar/horizon-server.sls

salt-call --local --retcode-passthrough state.highstate

{% for service in server.service %}
service {{ service }} stop || true
{% endfor %}

export APACHE_RUN_USER=horizon
export APACHE_RUN_GROUP=horizon
export APACHE_PID_FILE=/var/run/apache2/apache2.pid
export APACHE_RUN_DIR=/var/run/apache2
export APACHE_LOCK_DIR=/var/lock/apache2
export APACHE_LOG_DIR=/var/log/apache2

su horizon --shell=/bin/sh -c 'apachectl -DFOREGROUND'

{#-
vim: syntax=jinja
-#}

{'fraction_non_alphanumeric': 0.13992932862190813, 'fraction_numerical': 0.007067137809187279, 'mean_word_length': 4.664, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '212707', 'n_tokens_mistral': 575, 'n_tokens_neox': 541, 'n_words': 100}