<commit_before>#! /bin/sh

### BEGIN INIT INFO
# Provides:          jira
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO

. /lib/lsb/init-functions

NAME="jira"
JIRA_PATH="/opt/atlassian-jira-<%= scope.lookupvar('jira::params::jira_version') %>-standalone"
START_SCRIPT="${JIRA_PATH}/bin/startup.sh"
STOP_SCRIPT="${JIRA_PATH}/bin/stop_jira.sh"
PIDFILE="${JIRA_PATH}/work/catalina.pid"
CWD=`pwd`

start () {
        log_daemon_msg "Starting $NAME"
        if start-stop-daemon --start --quiet --oknodo -d /opt/ --pidfile "$PIDFILE" -b -m -N 19 --exec $START_SCRIPT; then
                log_end_msg 0
        else
                log_end_msg 1<commit_msg>fix jira::params::version in init script<commit_after>#! /bin/sh

### BEGIN INIT INFO
# Provides:          jira
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start daemon at boot time
# Description:       Enable service provided by daemon.
### END INIT INFO

. /lib/lsb/init-functions

NAME="jira"
JIRA_PATH="/opt/atlassian-jira-<%= scope.lookupvar('jira::params::version') %>-standalone"
START_SCRIPT="${JIRA_PATH}/bin/startup.sh"
STOP_SCRIPT="${JIRA_PATH}/bin/stop_jira.sh"
PIDFILE="${JIRA_PATH}/work/catalina.pid"
CWD=`pwd`

start () {
        log_daemon_msg "Starting $NAME"
        if start-stop-daemon --start --quiet --oknodo -d /opt/ --pidfile "$PIDFILE" -b -m -N 19 --exec $START_SCRIPT; then
                log_end_msg 0
        else
                log_end_msg 1
{'fraction_non_alphanumeric': 0.14645308924485126, 'fraction_numerical': 0.012585812356979404, 'mean_word_length': 2.9480812641083523, 'pattern_counts': {'":': 0, '<': 5, '<?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': '321470', 'n_tokens_mistral': 675, 'n_tokens_neox': 628, 'n_words': 145}