I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit d9f3e9e2 authored by kytv's avatar kytv
Browse files

try to parse the pidfile location from wrapper.config

parent ed357b1a
No related branches found
No related tags found
No related merge requests found
...@@ -298,7 +298,11 @@ ANCHORFILE="$PIDDIR/$APP_NAME.anchor" ...@@ -298,7 +298,11 @@ ANCHORFILE="$PIDDIR/$APP_NAME.anchor"
COMMANDFILE="$PIDDIR/$APP_NAME.command" COMMANDFILE="$PIDDIR/$APP_NAME.command"
STATUSFILE="$PIDDIR/$APP_NAME.status" STATUSFILE="$PIDDIR/$APP_NAME.status"
JAVASTATUSFILE="$PIDDIR/$APP_NAME.java.status" JAVASTATUSFILE="$PIDDIR/$APP_NAME.java.status"
PIDFILE="$PIDDIR/$APP_NAME.pid" if [ $(which awk) ]; then
PIDFILE="$(awk -F'=' '/^ *wrapper\.pidfile/{print $2}' "$WRAPPER_CONF")"
else
PIDFILE="$PIDDIR/$APP_NAME.pid"
fi
LOCKDIR="/var/lock/subsys" LOCKDIR="/var/lock/subsys"
LOCKFILE="$LOCKDIR/$APP_NAME" LOCKFILE="$LOCKDIR/$APP_NAME"
pid="" pid=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment