<commit_before>#!/bin/bash

service postgresql-9.6 start
service elasticsearch start
service postfix start

# scheduler
zammad run worker start &

# websockets
zammad run websocket start &

# puma
# zammad run web start &
su - zammad -c 'export PATH=/opt/zammad/bin:$PATH && export GEM_PATH=/opt/zammad/vendor/bundle/ruby/2.3.0/ && ./vendor/bundle/ruby/2.3.0/bin/puma -e production -p 3000' &

service nginx start<commit_msg>Fixed issue#6 - Unable to start Zammad / no database connect possible.<commit_after>#!/bin/bash

service postgresql-9.6 start
service elasticsearch start
service postfix start

# wait until postgres is ready
until su - postgres -c 'psql -c "select version()"' &> /dev/null
do
    echo "waiting for postgres to be ready..."
    sleep 20
done

# scheduler
zammad run worker start &

# websockets
zammad run websocket start &

# puma
# zammad run web start &
su - zammad -c 'export PATH=/opt/zammad/bin:$PATH && export GEM_PATH=/opt/zammad/vendor/bundle/ruby/2.3.0/ && ./vendor/bundle/ruby/2.3.0/bin/puma -e production -p 3000' &

service nginx start
{'fraction_non_alphanumeric': 0.11847014925373134, 'fraction_numerical': 0.025186567164179104, 'mean_word_length': 3.706140350877193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2704264', 'n_tokens_mistral': 406, 'n_tokens_neox': 362, 'n_words': 113}