Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Move pid file to /var/run #100

@linc01n

Description

@linc01n

We should move the /opt/atlassian/stash/work/catalina.pid to /var/run

It is because we are symlinking /opt/atlassian/stash to the latest version of stash. Every time we run the chef script to upgrade stash, it will change the symlink target and failed the stash restart since the service can't find the pid.

So the situation is like this:

/opt/atlassian/stash -> /opt/atlassian/stash-3.9.0
the catalina.pid is located in /opt/atlassian/stash-3.9.0

We run the cookbooks to update stash, now it points to
/opt/atlassian/stash -> /opt/atlassian/stash-3.10.0
the catalina.pid is still located in /opt/atlassian/stash-3.9.0

At the end of cookbook, we restart the stash service. But it fails because it can't find /opt/atlassian/stash-3.10.0/work/catalina.pid

reference: http://stackoverflow.com/questions/5173636/must-my-pidfile-be-located-in-var-run

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions