/usr/sbin/pki-server-nuxwdog is in pki-server 10.6.0-1ubuntu2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | #!/bin/sh
if [ "$#" -ne 1 ]; then
echo "ERROR: $0 requires parameter"
exit 1
fi
# default pki tomcat.conf for NSS_DEFAULT_DB_TYPE
. /usr/share/pki/etc/tomcat.conf
# system-wide config
. /etc/tomcat/tomcat.conf
NAME=$1
if [ -f /etc/sysconfig/$NAME ]; then
. /etc/sysconfig/$NAME
else
echo "ERROR: Unable to find /etc/sysconfig/$NAME file"
exit 1
fi
. /usr/libexec/tomcat/preamble
NUXWDOG_PID=${CATALINA_BASE}/logs/wd-$NAME.pid
CATALINA_PID=${CATALINA_BASE}/logs/$NAME.pid
MAIN_CLASS=org.apache.catalina.startup.Bootstrap
FLAGS="$JAVA_OPTS"
OPTIONS="-Dcatalina.base=$CATALINA_BASE \
-Dcatalina.home=$CATALINA_HOME \
-Djava.endorsed.dirs=$JAVA_ENDORSED_DIRS \
-Djava.io.tmpdir=$CATALINA_TMPDIR \
-Djava.util.logging.config.file=${LOGGING_PROPERTIES} \
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
FLAGS="${FLAGS} $CATALINA_OPTS"
if [ "${SECURITY_MANAGER}" = "true" ] ; then
OPTIONS="${OPTIONS} \
-Djava.security.manager \
-Djava.security.policy==${CATALINA_BASE}/conf/catalina.policy"
fi
set_javacmd
# create the nuxwdog config file
nux_fname="${CATALINA_BASE}/conf/nuxwdog.conf"
touch ${nux_fname}
chown ${TOMCAT_USER}: ${nux_fname}
echo "ExeFile ${JAVA_HOME}/bin/java" > $nux_fname
echo "ExeArgs ${JAVA_HOME}/bin/java ${JAVACMD_OPTS} ${FLAGS} -classpath ${CLASSPATH} ${OPTIONS} ${MAIN_CLASS} start" >> $nux_fname
echo "TmpDir ${CATALINA_BASE}/logs/pids" >> $nux_fname
echo "ChildSecurity 1" >> $nux_fname
echo "ExeOut ${CATALINA_BASE}/logs/catalina.out" >> $nux_fname
echo "ExeErr ${CATALINA_BASE}/logs/catalina.out" >> $nux_fname
echo "ExeBackground 1" >> $nux_fname
echo "PidFile $NUXWDOG_PID" >> $nux_fname
echo "ChildPidFile $CATALINA_PID" >> $nux_fname
echo "User ${TOMCAT_USER}" >> $nux_fname
|