There is a minor update I would like to suggest in order to resolve an issue when using a custom ARTIFACTORY_PID.
The problem is a hardcoded pid filename, even when the ARTIFACTORY_PID is set.
Below is a patch file content that fixes this issue (i couldn't figure out how to attach it as file):
< if [ -f $ARTIFACTORY_RUN/artifactory.pid ]
> if [ -f $ARTIFACTORY_PID ]
< echo "Artifactory is running, on pid="`cat $ARTIFACTORY_RUN/artifactory.pid`
> echo "Artifactory is running, on pid="`cat $ARTIFACTORY_PID`