<commit_before># vim: set ft=upstart:

# Upstart job configuration for Parsoid
# This file is managed by Puppet

description "Parsoid HTTP service"

start on mediawiki-ready
stop on runlevel [!2345]

setuid "www-data"
setgid "www-data"

env VCAP_APP_PORT="<%= @port %>"
env NODE_PATH="<%= @dir %>/node_modules"

chdir "<%= @dir %>"
exec node src/api/server.js --num-workers <%= @workers %>

respawn<commit_msg>Parsoid: Upstart: start the service as bin/server.js<commit_after># vim: set ft=upstart:

# Upstart job configuration for Parsoid
# This file is managed by Puppet

description "Parsoid HTTP service"

start on mediawiki-ready
stop on runlevel [!2345]

setuid "www-data"
setgid "www-data"

env VCAP_APP_PORT="<%= @port %>"
env NODE_PATH="<%= @dir %>/node_modules"

chdir "<%= @dir %>"
exec node src/bin/server.js --num-workers <%= @workers %>

respawn
{'fraction_non_alphanumeric': 0.14435389988358557, 'fraction_numerical': 0.009313154831199068, 'mean_word_length': 4.931034482758621, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '4258553', 'n_tokens_mistral': 332, 'n_tokens_neox': 313, 'n_words': 95}