When I start Jira as the `jira` user using the command
/opt/atlassian/jira-software/current/bin/start-jira.sh
the `/opt/atlassian/jira-software/current/work/catalina.pid` file is created as expected.
When started as a system service using
sudo systemctl start jira-software
the `catalina.pid` file is not created.
In my `/opt/atlassian/jira-software/current/bin/setenv.sh` I have not modified anything below the 'don't make changes below here' line and it contains the standard
# set the location of the pid file
if [ -z "$CATALINA_PID" ] ; then
if [ -n "$CATALINA_BASE" ] ; then
CATALINA_PID="$CATALINA_BASE"/work/catalina.pid
elif [ -n "$CATALINA_HOME" ] ; then
CATALINA_PID="$CATALINA_HOME"/work/catalina.pid
fi
fi
export CATALINA_PID
My `/etc/bashrc` sets `export CATALINA_BASE=/opt/atlassian/jira-software/current` though my CATALINA_HOME is undefined.
Jira is normally started at power-up as a system service/
My version of Jira is 8.13.13 and I am using the dc-deployments-automation Ansible scripts from https://bitbucket.org/atlassian/dc-deployments-automation/