SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
48
databases/puppetdb/7/patches/patch-ext_cli_start
Normal file
48
databases/puppetdb/7/patches/patch-ext_cli_start
Normal file
|
@ -0,0 +1,48 @@
|
|||
Index: ext/cli/start
|
||||
--- ext/cli/start.orig
|
||||
+++ ext/cli/start
|
||||
@@ -3,7 +3,7 @@ set +e
|
||||
|
||||
pid="$(pgrep -f "puppetdb.jar.* -m puppetlabs.puppetdb.cli.services")"
|
||||
|
||||
-restartfile="/opt/puppetlabs/server/data/puppetdb/restartcounter"
|
||||
+restartfile="/var/puppetlabs/puppetdb/data/restartcounter"
|
||||
start_timeout="${START_TIMEOUT:-14400}"
|
||||
|
||||
real_name="puppetdb"
|
||||
@@ -18,13 +18,20 @@ app_logdir=${app_logdir:=/var/log/puppetlabs/${real_na
|
||||
PIDFILE="${rundir}/${real_name}.pid"
|
||||
|
||||
cli_defaults=${INSTALL_DIR}/cli/cli-defaults.sh
|
||||
+if [ -e "$cli_defaults" ]; then
|
||||
+ . $cli_defaults
|
||||
+ if [ $? -ne 0 ]; then
|
||||
+ echo "Unable to initialize cli defaults, failing start." 1>&2
|
||||
+ exit 1
|
||||
+ fi
|
||||
+fi
|
||||
|
||||
if [ ! -e "${INSTALL_DIR}/ezbake-functions.sh" ]; then
|
||||
echo "Unable to find ${INSTALL_DIR}/ezbake-functions.sh script, failing start." 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
-/usr/bin/install --directory --owner=$USER --group=$GROUP --mode=755 "$rundir"
|
||||
+/usr/bin/install -d -o $USER -g $GROUP -m 755 "$rundir"
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Unable to create/set permissions for rundir: ${rundir}" 1>&2
|
||||
exit 1
|
||||
@@ -58,13 +65,6 @@ init_restart_file "$restartfile" || exit $?
|
||||
|
||||
CLASSPATH=${INSTALL_DIR}/puppetdb.jar
|
||||
|
||||
-if [ -e "$cli_defaults" ]; then
|
||||
- . $cli_defaults
|
||||
- if [ $? -ne 0 ]; then
|
||||
- echo "Unable to initialize cli defaults, failing start." 1>&2
|
||||
- exit 1
|
||||
- fi
|
||||
-fi
|
||||
|
||||
java_version=$($JAVA_BIN -version 2>&1 | head -1 | awk -F\" '{ print $2 }')
|
||||
java_major_version=$(echo $java_version | awk -F. '{ print $1 }')
|
Loading…
Add table
Add a link
Reference in a new issue