<commit_before># vault Agent (Upstart unit)
###########################################################################################################
# this file has been put in place by the jsok/vault Puppet module (https://forge.puppetlabs.com/jsok/vault)
# any changes will be overwritten if Puppet is run again
###########################################################################################################
description "vault server"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [06]

env VAULT=<%= scope.lookupvar('vault::bin_dir') %>/vault
env CONFIG=<%= scope.lookupvar('vault::config_dir') %>/config.json
env USER=<%= scope.lookupvar('vault::user') %>
env GROUP=<%= scope.lookupvar('vault::group') %>
env PID_FILE=/var/run/vault.pid

script
    export GOMAXPROCS=${GOMAXPROCS:-<%= scope.lookupvar('vault::num_procs') %>}
    [ -e /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
    exec start-stop-daemon -u $USER -g $GROUP -p $PID_FILE -x $VAULT -S -- server -config=$CONFIG <%= scope.lookupvar('vault::service_options') %>
end script

respawn
respawn limit 10 10
kill timeout 10<commit_msg>Configure log file for upstart. (#27)<commit_after># vault Agent (Upstart unit)
###########################################################################################################
# this file has been put in place by the jsok/vault Puppet module (https://forge.puppetlabs.com/jsok/vault)
# any changes will be overwritten if Puppet is run again
###########################################################################################################
description "vault server"
start on (local-filesystems and net-device-up IFACE!=lo)
stop on runlevel [06]

env VAULT=<%= scope.lookupvar('vault::bin_dir') %>/vault
env CONFIG=<%= scope.lookupvar('vault::config_dir') %>/config.json
env USER=<%= scope.lookupvar('vault::user') %>
env GROUP=<%= scope.lookupvar('vault::group') %>
env PID_FILE=/var/run/vault.pid
env LOG_FILE=/var/log/vault.log

script
    export GOMAXPROCS=${GOMAXPROCS:-<%= scope.lookupvar('vault::num_procs') %>}
    [ -e /etc/default/$UPSTART_JOB ] && . /etc/default/$UPSTART_JOB
    exec >> $LOG_FILE 2>&1
    exec start-stop-daemon -u $USER -g $GROUP -p $PID_FILE -x $VAULT -S -- server -config=$CONFIG <%= scope.lookupvar('vault::service_options') %>
end script

respawn
respawn limit 10 10
kill timeout 10
{'fraction_non_alphanumeric': 0.3094939355918026, 'fraction_numerical': 0.008364700961940611, 'mean_word_length': 6.097922848664688, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 18, 'https://': 2, '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': '3280585', 'n_tokens_mistral': 782, 'n_tokens_neox': 720, 'n_words': 185}