enable translations for 'i2prouter'

This commit is contained in:
kytv
2012-12-22 15:10:57 +00:00
parent 69d22b84f9
commit 9a241af241
5 changed files with 290 additions and 763 deletions

View File

@@ -131,6 +131,11 @@ trans.ru = debian/po/ru.po
trans.sv_SE = debian/po/sv.po trans.sv_SE = debian/po/sv.po
trans.uk_UA = debian/po/uk.po trans.uk_UA = debian/po/uk.po
[I2P.i2prouter-script]
source_file = installer/resources/locale/messages_en.po
source_lang = en
trans.de = installer/resources/locale/po/messages_de.po
[main] [main]
host = http://www.transifex.net host = http://www.transifex.net

View File

@@ -396,14 +396,11 @@
</target> </target>
<target name="prep-script-translation" > <target name="prep-script-translation" >
<!-- script translation added in 0.8.13, disable for now --> <!-- script translation added in 0.8.13, enabled in 0.9.5. -->
<echo message="i2prouter script translations disabled" />
<!--
<ant dir="installer/resources/locale" target="bundle" /> <ant dir="installer/resources/locale" target="bundle" />
<copy todir="pkg-temp/locale/"> <copy todir="pkg-temp/locale/">
<fileset dir="installer/resources/locale/mo/" /> <fileset dir="installer/resources/locale/mo/" />
</copy> </copy>
-->
</target> </target>
<target name="javadoc" depends="getReleaseNumber, getBuildNumber" > <target name="javadoc" depends="getReleaseNumber, getBuildNumber" >

View File

@@ -113,12 +113,6 @@ WAIT_FOR_STARTED_TIMEOUT=120
# state information on the Wrapper and Java processes. # state information on the Wrapper and Java processes.
#DETAIL_STATUS=true #DETAIL_STATUS=true
# If set, the 'pause' and 'resume' commands will be enabled. These make it
# possible to pause the JVM or Java application without completely stopping
# the Wrapper. See the wrapper.pausable and wrapper.pausable.stop_jvm
# properties for more information.
#PAUSABLE=true
# By default we show a detailed usage block. Uncomment to show brief usage. # By default we show a detailed usage block. Uncomment to show brief usage.
#BRIEF_USAGE=true #BRIEF_USAGE=true
@@ -198,7 +192,7 @@ unsupported() {
} }
failed() { failed() {
echo "**Failed to load the wrapper**" echo "**`gettext 'Failed to load the wrapper'`**"
case `uname -s` in case `uname -s` in
FreeBSD) FreeBSD)
echo echo
@@ -319,8 +313,8 @@ PSEXE="/usr/ucb/ps"
PSEXE="/bin/ps" PSEXE="/bin/ps"
if [ ! -x "$PSEXE" ] if [ ! -x "$PSEXE" ]
then then
eval echo `gettext 'Unable to locate "ps".'` echo 'Unable to locate "ps".'
eval echo `gettext 'Please report this message along with the location of the command on your system.'` echo 'Please report this message along with the location of the command on your system.'
exit 1 exit 1
fi fi
fi fi
@@ -332,8 +326,8 @@ then
TREXE="/bin/tr" TREXE="/bin/tr"
if [ ! -x "$TREXE" ] if [ ! -x "$TREXE" ]
then then
eval echo `gettext 'Unable to locate "tr".'` echo 'Unable to locate "tr".'
eval echo `gettext 'Please report this message along with the location of the command on your system.'` echo 'Please report this message along with the location of the command on your system.'
exit 1 exit 1
fi fi
fi fi
@@ -499,7 +493,7 @@ gettext() {
outputFile() { outputFile() {
if [ -f "$1" ] if [ -f "$1" ]
then then
eval echo `gettext ' $1 Found but not executable.'`; echo ' $1 Found but not executable.';
else else
echo " $1" echo " $1"
fi fi
@@ -558,7 +552,7 @@ then
fi fi
if [ -z "$WRAPPER_TEST_CMD" ] if [ -z "$WRAPPER_TEST_CMD" ]
then then
eval echo `gettext 'Unable to locate any of the following binaries:'` echo 'Unable to locate any of the following binaries:'
outputFile "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-$DIST_BITS" outputFile "$WRAPPER_CMD-$DIST_OS-$DIST_ARCH-$DIST_BITS"
if [ ! "$DIST_BITS" = "32" ] if [ ! "$DIST_BITS" = "32" ]
then then
@@ -604,12 +598,7 @@ else
fi fi
# Build the command file clause. # Build the command file clause.
if [ -n "$PAUSABLE" ] COMMANDPROP=
then
COMMANDPROP="wrapper.commandfile=\"$COMMANDFILE\" wrapper.pausable=TRUE"
else
COMMANDPROP=
fi
# Build the log file clause. # Build the log file clause.
LOGPROP="wrapper.logfile=\"$LOGFILE\"" LOGPROP="wrapper.logfile=\"$LOGFILE\""
@@ -660,8 +649,8 @@ checkUser() {
IDEXE="/usr/bin/id" IDEXE="/usr/bin/id"
if [ ! -x "$IDEXE" ] if [ ! -x "$IDEXE" ]
then then
eval echo `gettext 'Unable to locate "id".'` echo 'Unable to locate "id".'
eval echo `gettext 'Please report this message along with the location of the command on your system.'` echo 'Please report this message along with the location of the command on your system.'
exit 1 exit 1
fi fi
fi fi
@@ -805,12 +794,12 @@ getpid() {
then then
# This is a stale pid file. # This is a stale pid file.
rm -f "$PIDFILE" rm -f "$PIDFILE"
eval echo `gettext 'Removed stale pid file: $PIDFILE'` echo 'Removed stale pid file: $PIDFILE'
pid="" pid=""
fi fi
fi fi
else else
eval echo `gettext 'Cannot read $PIDFILE.'` echo 'Cannot read $PIDFILE.'
exit 1 exit 1
fi fi
fi fi
@@ -911,7 +900,7 @@ launchdinternal() {
} }
console() { console() {
eval echo `gettext 'Running $APP_LONG_NAME...'` eval echo "`gettext 'Running $APP_LONG_NAME'`..."
getpid getpid
if [ "X$pid" = "X" ] if [ "X$pid" = "X" ]
then then
@@ -934,7 +923,7 @@ console() {
waitforjavastartup() { waitforjavastartup() {
getstatus getstatus
eval echo $ECHOOPT `gettext 'Waiting for $APP_LONG_NAME...'` eval echo $ECHOOPT "`gettext 'Waiting for $APP_LONG_NAME'`..."
# Wait until the timeout or we have something besides Unknown. # Wait until the timeout or we have something besides Unknown.
counter=15 counter=15
@@ -981,10 +970,10 @@ startwait() {
getpid getpid
if [ "X$pid" = "X" ] if [ "X$pid" = "X" ]
then then
eval echo `gettext ' WARNING: $APP_LONG_NAME may have failed to start.'` eval echo " `gettext 'WARNING: $APP_LONG_NAME may have failed to start.'`"
exit 1 exit 1
else else
eval echo `gettext ' running: PID:$pid'` eval echo ' running: PID:$pid'
fi fi
else else
echo "" echo ""
@@ -993,7 +982,7 @@ startwait() {
macosxstart() { macosxstart() {
# The daemon has been installed. # The daemon has been installed.
eval echo `gettext 'Starting $APP_LONG_NAME. Detected Mac OSX and installed launchd daemon.'` echo 'Starting $APP_LONG_NAME. Detected Mac OSX and installed launchd daemon.'
if [ `id | sed 's/^uid=//;s/(.*$//'` != "0" ] ; then if [ `id | sed 's/^uid=//;s/(.*$//'` != "0" ] ; then
eval echo `gettext 'Must be root to perform this action.'` eval echo `gettext 'Must be root to perform this action.'`
exit 1 exit 1
@@ -1021,7 +1010,7 @@ macosxstart() {
upstartstart() { upstartstart() {
# The daemon has been installed. # The daemon has been installed.
eval echo `gettext 'Starting $APP_LONG_NAME. Detected Linux and installed upstart.'` echo 'Starting $APP_LONG_NAME. Detected Linux and installed upstart.'
if [ `id | sed 's/^uid=//;s/(.*$//'` != "0" ] ; then if [ `id | sed 's/^uid=//;s/(.*$//'` != "0" ] ; then
eval echo `gettext 'Must be root to perform this action.'` eval echo `gettext 'Must be root to perform this action.'`
exit 1 exit 1
@@ -1039,7 +1028,7 @@ upstartstart() {
} }
start() { start() {
eval echo `gettext 'Starting $APP_LONG_NAME...'` eval echo "`gettext 'Starting $APP_LONG_NAME'`..."
getpid getpid
if [ "X$pid" = "X" ] if [ "X$pid" = "X" ]
then then
@@ -1064,7 +1053,7 @@ start() {
stopit() { stopit() {
# $1 exit if down flag # $1 exit if down flag
eval echo `gettext 'Stopping $APP_LONG_NAME...'` eval echo "`gettext 'Stopping $APP_LONG_NAME'`..."
getpid getpid
if [ "X$pid" = "X" ] if [ "X$pid" = "X" ]
then then
@@ -1107,7 +1096,7 @@ stopit() {
then then
CNT=`expr $CNT + 1` CNT=`expr $CNT + 1`
else else
eval echo `gettext 'Waiting for $APP_LONG_NAME to exit...'` eval echo "`gettext 'Waiting for $APP_LONG_NAME to exit'`..."
CNT=0 CNT=0
fi fi
TOTCNT=`expr $TOTCNT + 1` TOTCNT=`expr $TOTCNT + 1`
@@ -1132,7 +1121,7 @@ stopit() {
graceful() { graceful() {
# $1 exit if down flag # $1 exit if down flag
eval echo `gettext 'Stopping $APP_LONG_NAME gracefully...'` eval echo "`gettext 'Stopping $APP_LONG_NAME gracefully'`..."
getpid getpid
if [ "X$pid" = "X" ] if [ "X$pid" = "X" ]
then then
@@ -1167,11 +1156,11 @@ graceful() {
} }
pause() { pause() {
eval echo `gettext 'Pausing $APP_LONG_NAME.'` echo 'Pausing $APP_LONG_NAME.'
} }
resume() { resume() {
eval echo `gettext 'Resuming $APP_LONG_NAME.'` echo 'Resuming $APP_LONG_NAME.'
} }
status() { status() {
@@ -1193,12 +1182,12 @@ status() {
} }
installUpstart() { installUpstart() {
eval echo `gettext ' Installing the $APP_LONG_NAME daemon using upstart..'` echo ' Installing the $APP_LONG_NAME daemon using upstart..'
if [ -f "${APP_NAME}.conf" ] ; then if [ -f "${APP_NAME}.conf" ] ; then
eval echo `gettext ' a custom upstart conf file ${APP_NAME}.conf found'` echo ' a custom upstart conf file ${APP_NAME}.conf found'
cp "${REALDIR}/${APP_NAME}.install" "/etc/init/${APP_NAME}.conf" cp "${REALDIR}/${APP_NAME}.install" "/etc/init/${APP_NAME}.conf"
else else
eval echo `gettext ' creating default upstart conf file..'` echo ' creating default upstart conf file..'
echo "# ${APP_NAME} - ${APP_LONG_NAME}" > "/etc/init/${APP_NAME}.conf" echo "# ${APP_NAME} - ${APP_LONG_NAME}" > "/etc/init/${APP_NAME}.conf"
echo "description \"${APP_LONG_NAME}\"" >> "/etc/init/${APP_NAME}.conf" echo "description \"${APP_LONG_NAME}\"" >> "/etc/init/${APP_NAME}.conf"
echo "author \"Tanuki Software Ltd. <info@tanukisoftware.com>\"" >> "/etc/init/${APP_NAME}.conf" echo "author \"Tanuki Software Ltd. <info@tanukisoftware.com>\"" >> "/etc/init/${APP_NAME}.conf"
@@ -1237,40 +1226,40 @@ installdaemon() {
else else
APP_NAME_LOWER=`echo "$APP_NAME" | $TREXE "[A-Z]" "[a-z]"` APP_NAME_LOWER=`echo "$APP_NAME" | $TREXE "[A-Z]" "[a-z]"`
if [ "$DIST_OS" = "solaris" ] ; then if [ "$DIST_OS" = "solaris" ] ; then
eval echo `gettext 'Detected Solaris:'` echo 'Detected Solaris:'
if [ -f /etc/init.d/$APP_NAME ] ; then if [ -f /etc/init.d/$APP_NAME ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
ln -s "$REALPATH" "/etc/init.d/$APP_NAME" ln -s "$REALPATH" "/etc/init.d/$APP_NAME"
ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/K20$APP_NAME_LOWER" ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/K20$APP_NAME_LOWER"
ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/S20$APP_NAME_LOWER" ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/S20$APP_NAME_LOWER"
fi fi
elif [ "$DIST_OS" = "linux" ] ; then elif [ "$DIST_OS" = "linux" ] ; then
if [ -f /etc/redhat-release -o -f /etc/redhat_version -o -f /etc/fedora-release ] ; then if [ -f /etc/redhat-release -o -f /etc/redhat_version -o -f /etc/fedora-release ] ; then
eval echo `gettext 'Detected RHEL or Fedora:'` echo 'Detected RHEL or Fedora:'
if [ -f "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then if [ -f "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
if [ -n "$USE_UPSTART" -a -d "/etc/init" ] ; then if [ -n "$USE_UPSTART" -a -d "/etc/init" ] ; then
installUpstart installUpstart
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
ln -s "$REALPATH" "/etc/init.d/$APP_NAME" ln -s "$REALPATH" "/etc/init.d/$APP_NAME"
/sbin/chkconfig --add "$APP_NAME" /sbin/chkconfig --add "$APP_NAME"
/sbin/chkconfig "$APP_NAME" on /sbin/chkconfig "$APP_NAME" on
fi fi
fi fi
elif [ -f /etc/slackware-version ]; then elif [ -f /etc/slackware-version ]; then
eval echo `gettext 'Detected Slackware Linux:'` echo 'Detected Slackware Linux:'
if [ -e "/etc/rc.d/rc.i2p" -o -f "/etc/rc.d/rc.i2p.new" ]; then if [ -e "/etc/rc.d/rc.i2p" -o -f "/etc/rc.d/rc.i2p.new" ]; then
echo "Found initscript from I2P Slackpkg. Aborting." >&2 echo "Found initscript from I2P Slackpkg. Aborting." >&2
exit 1 exit 1
else else
if grep -q ${APP_NAME}router /etc/rc.d/rc.local > /dev/null 2>&1; then if grep -q ${APP_NAME}router /etc/rc.d/rc.local > /dev/null 2>&1; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
echo "${REALDIR}/${APP_NAME}router start" >> /etc/rc.d/rc.local echo "${REALDIR}/${APP_NAME}router start" >> /etc/rc.d/rc.local
@@ -1282,12 +1271,12 @@ installdaemon() {
fi fi
fi fi
elif [ -f /etc/arch-release ]; then elif [ -f /etc/arch-release ]; then
eval echo `gettext 'Detected Arch Linux:'` echo 'Detected Arch Linux:'
if [ -f "/etc/rc.d/i2prouter" -o -f "/usr/lib/systemd/system/i2prouter.service" ]; then if [ -f "/etc/rc.d/i2prouter" -o -f "/usr/lib/systemd/system/i2prouter.service" ]; then
eval echo `gettext 'AUR package found. Refusing to continue.'` echo 'AUR package found. Refusing to continue.'
exit 1 exit 1
elif [ -f /etc/rc.d/i2p -a ! "$USE_SYSTEMD" = "1" ] || [ -f "$SYSTEMD_SERVICE" -a "$USE_SYSTEMD" = "1" ]; then elif [ -f /etc/rc.d/i2p -a ! "$USE_SYSTEMD" = "1" ] || [ -f "$SYSTEMD_SERVICE" -a "$USE_SYSTEMD" = "1" ]; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
if [ ! -f "/etc/init.d/i2p" ]; then if [ ! -f "/etc/init.d/i2p" ]; then
@@ -1339,8 +1328,8 @@ installdaemon() {
echo "esac" >> /etc/rc.d/${APP_NAME} echo "esac" >> /etc/rc.d/${APP_NAME}
chmod 755 /etc/rc.d/${APP_NAME} chmod 755 /etc/rc.d/${APP_NAME}
chown root:root /etc/rc.d/${APP_NAME} chown root:root /etc/rc.d/${APP_NAME}
eval echo `gettext ' The $APP_LONG_NAME daemon has been installed.'` echo ' The $APP_LONG_NAME daemon has been installed.'
eval echo `gettext ' Add \"i2p\" to the DAEMONS variable in /etc/rc.conf to enable.'` echo ' Add \"i2p\" to the DAEMONS variable in /etc/rc.conf to enable.'
else else
# We'll end up here if systemd is enabled. # We'll end up here if systemd is enabled.
# If systemd is enabled we don't need the initscript # If systemd is enabled we don't need the initscript
@@ -1352,14 +1341,14 @@ installdaemon() {
fi fi
fi fi
elif [ -f /etc/SuSE-release ] ; then elif [ -f /etc/SuSE-release ] ; then
eval echo `gettext 'Detected SuSE or SLES:'` echo 'Detected SuSE or SLES:'
if [ -f /etc/rc.d/${APP_NAME} -a ! "$USE_SYSTEMD" = "1" ] || [ -f "$SYSTEMD_SERVICE" -a "$USE_SYSTEMD" = "1" ]; then if [ -f /etc/rc.d/${APP_NAME} -a ! "$USE_SYSTEMD" = "1" ] || [ -f "$SYSTEMD_SERVICE" -a "$USE_SYSTEMD" = "1" ]; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
if [ ! -f "/etc/init.d/$APP_NAME" ]; then if [ ! -f "/etc/init.d/$APP_NAME" ]; then
if [ "$USE_SYSTEMD" != "1" ]; then if [ "$USE_SYSTEMD" != "1" ]; then
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
ln -s "$REALPATH" "/etc/init.d/$APP_NAME" ln -s "$REALPATH" "/etc/init.d/$APP_NAME"
sed -i "s/Default-Start: 2 3 4 5/Default-Start: 5/" $0 sed -i "s/Default-Start: 2 3 4 5/Default-Start: 5/" $0
insserv "/etc/init.d/$APP_NAME" insserv "/etc/init.d/$APP_NAME"
@@ -1372,26 +1361,26 @@ installdaemon() {
fi fi
fi fi
elif [ -f /etc/lsb-release -o -f /etc/debian_version ] ; then elif [ -f /etc/lsb-release -o -f /etc/debian_version ] ; then
eval echo `gettext 'Detected Debian-based distribution:'` echo 'Detected Debian-based distribution:'
if [ -f "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then if [ -f "/etc/init.d/$APP_NAME" -o -f "/etc/init/${APP_NAME}.conf" ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
if [ -n "$USE_UPSTART" -a -d "/etc/init" ] ; then if [ -n "$USE_UPSTART" -a -d "/etc/init" ] ; then
installUpstart installUpstart
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon using init.d..'` echo ' Installing the $APP_LONG_NAME daemon using init.d..'
ln -s "$REALPATH" "/etc/init.d/$APP_NAME" ln -s "$REALPATH" "/etc/init.d/$APP_NAME"
update-rc.d "$APP_NAME" defaults update-rc.d "$APP_NAME" defaults
fi fi
fi fi
else else
eval echo `gettext 'Detected Linux:'` echo 'Detected Linux:'
if [ -f "/etc/init.d/$APP_NAME" ] ; then if [ -f "/etc/init.d/$APP_NAME" ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
ln -s "$REALPATH" /etc/init.d/$APP_NAME ln -s "$REALPATH" /etc/init.d/$APP_NAME
ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/K20$APP_NAME_LOWER" ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/K20$APP_NAME_LOWER"
ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/S20$APP_NAME_LOWER" ln -s "/etc/init.d/$APP_NAME" "/etc/rc3.d/S20$APP_NAME_LOWER"
@@ -1400,40 +1389,40 @@ installdaemon() {
fi fi
fi fi
elif [ "$DIST_OS" = "hpux" ] ; then elif [ "$DIST_OS" = "hpux" ] ; then
eval echo `gettext 'Detected HP-UX:'` echo 'Detected HP-UX:'
if [ -f "/sbin/init.d/$APP_NAME" ] ; then if [ -f "/sbin/init.d/$APP_NAME" ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
ln -s "$REALPATH" "/sbin/init.d/$APP_NAME" ln -s "$REALPATH" "/sbin/init.d/$APP_NAME"
ln -s "/sbin/init.d/$APP_NAME" "/sbin/rc3.d/K20$APP_NAME_LOWER" ln -s "/sbin/init.d/$APP_NAME" "/sbin/rc3.d/K20$APP_NAME_LOWER"
ln -s "/sbin/init.d/$APP_NAME" "/sbin/rc3.d/S20$APP_NAME_LOWER" ln -s "/sbin/init.d/$APP_NAME" "/sbin/rc3.d/S20$APP_NAME_LOWER"
fi fi
elif [ "$DIST_OS" = "aix" ] ; then elif [ "$DIST_OS" = "aix" ] ; then
eval echo `gettext 'Detected AIX:'` echo 'Detected AIX:'
if [ -f "/etc/rc.d/init.d/$APP_NAME" ] ; then if [ -f "/etc/rc.d/init.d/$APP_NAME" ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed as rc.d script.'` echo ' The $APP_LONG_NAME daemon is already installed as rc.d script.'
exit 1 exit 1
elif [ -n "`/usr/sbin/lsitab $APP_NAME`" -a -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then elif [ -n "`/usr/sbin/lsitab $APP_NAME`" -a -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed as SRC service.'` echo ' The $APP_LONG_NAME daemon is already installed as SRC service.'
exit 1 exit 1
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
if [ -n "`/usr/sbin/lsitab install_assist`" ] ; then if [ -n "`/usr/sbin/lsitab install_assist`" ] ; then
eval echo `gettext ' The task /usr/sbin/install_assist was found in the inittab, this might cause problems for all subsequent tasks to launch at this process is known to block the init task. Please make sure this task is not needed anymore and remove/deactivate it.'` echo ' The task /usr/sbin/install_assist was found in the inittab, this might cause problems for all subsequent tasks to launch at this process is known to block the init task. Please make sure this task is not needed anymore and remove/deactivate it.'
fi fi
/usr/bin/mkssys -s "$APP_NAME" -p "$REALPATH" -a "launchdinternal" -u 0 -f 9 -n 15 -S /usr/bin/mkssys -s "$APP_NAME" -p "$REALPATH" -a "launchdinternal" -u 0 -f 9 -n 15 -S
/usr/sbin/mkitab "$APP_NAME":2:once:"/usr/bin/startsrc -s \"${APP_NAME}\" >/dev/console 2>&1" /usr/sbin/mkitab "$APP_NAME":2:once:"/usr/bin/startsrc -s \"${APP_NAME}\" >/dev/console 2>&1"
fi fi
elif [ "$DIST_OS" = "freebsd" ] ; then elif [ "$DIST_OS" = "freebsd" ] ; then
eval echo `gettext 'Detected FreeBSD:'` echo 'Detected FreeBSD:'
if [ -f "/etc/rc.d/$APP_NAME" ] ; then if [ -f "/etc/rc.d/$APP_NAME" ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
sed -i .bak "/${APP_NAME}_enable=\"YES\"/d" /etc/rc.conf sed -i .bak "/${APP_NAME}_enable=\"YES\"/d" /etc/rc.conf
if [ -f "${REALDIR}/${APP_NAME}.install" ] ; then if [ -f "${REALDIR}/${APP_NAME}.install" ] ; then
ln -s "${REALDIR}/${APP_NAME}.install" "/etc/rc.d/$APP_NAME" ln -s "${REALDIR}/${APP_NAME}.install" "/etc/rc.d/$APP_NAME"
@@ -1466,12 +1455,12 @@ installdaemon() {
chmod 555 "/etc/rc.d/$APP_NAME" chmod 555 "/etc/rc.d/$APP_NAME"
fi fi
elif [ "$DIST_OS" = "macosx" ] ; then elif [ "$DIST_OS" = "macosx" ] ; then
eval echo `gettext 'Detected Mac OSX:'` echo 'Detected Mac OSX:'
if [ -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then if [ -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
if [ -f "${REALDIR}/${APP_PLIST}" ] ; then if [ -f "${REALDIR}/${APP_PLIST}" ] ; then
ln -s "${REALDIR}/${APP_PLIST}" "/Library/LaunchDaemons/${APP_PLIST}" ln -s "${REALDIR}/${APP_PLIST}" "/Library/LaunchDaemons/${APP_PLIST}"
else else
@@ -1501,12 +1490,12 @@ installdaemon() {
chmod 555 "/Library/LaunchDaemons/${APP_PLIST}" chmod 555 "/Library/LaunchDaemons/${APP_PLIST}"
fi fi
elif [ "$DIST_OS" = "zos" ] ; then elif [ "$DIST_OS" = "zos" ] ; then
eval echo `gettext 'Detected z/OS:'` echo 'Detected z/OS:'
if [ -f /etc/rc.bak ] ; then if [ -f /etc/rc.bak ] ; then
eval echo `gettext ' The $APP_LONG_NAME daemon is already installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is already installed.'`"
exit 1 exit 1
else else
eval echo `gettext ' Installing the $APP_LONG_NAME daemon..'` eval echo " `gettext 'Installing the $APP_LONG_NAME daemon'`.."
cp /etc/rc /etc/rc.bak cp /etc/rc /etc/rc.bak
sed "s:echo /etc/rc script executed, \`date\`::g" /etc/rc.bak > /etc/rc sed "s:echo /etc/rc script executed, \`date\`::g" /etc/rc.bak > /etc/rc
echo "_BPX_JOBNAME='${APP_NAME}' \"${REALDIR}/${APP_NAME}router\" start" >>/etc/rc echo "_BPX_JOBNAME='${APP_NAME}' \"${REALDIR}/${APP_NAME}router\" start" >>/etc/rc
@@ -1527,104 +1516,104 @@ removedaemon() {
stopit "0" stopit "0"
APP_NAME_LOWER=`echo "$APP_NAME" | $TREXE "[A-Z]" "[a-z]"` APP_NAME_LOWER=`echo "$APP_NAME" | $TREXE "[A-Z]" "[a-z]"`
if [ "$DIST_OS" = "solaris" ] ; then if [ "$DIST_OS" = "solaris" ] ; then
eval echo `gettext 'Detected Solaris:'` echo 'Detected Solaris:'
if [ -f "/etc/init.d/$APP_NAME" ] ; then if [ -f "/etc/init.d/$APP_NAME" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
for i in "/etc/rc3.d/S20$APP_NAME_LOWER" "/etc/rc3.d/K20$APP_NAME_LOWER" "/etc/init.d/$APP_NAME" for i in "/etc/rc3.d/S20$APP_NAME_LOWER" "/etc/rc3.d/K20$APP_NAME_LOWER" "/etc/init.d/$APP_NAME"
do do
rm -f $i rm -f $i
done done
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ "$DIST_OS" = "linux" ] ; then elif [ "$DIST_OS" = "linux" ] ; then
if [ -f /etc/redhat-release -o -f /etc/redhat_version -o -f /etc/fedora-release ] ; then if [ -f /etc/redhat-release -o -f /etc/redhat_version -o -f /etc/fedora-release ] ; then
eval echo `gettext 'Detected RHEL or Fedora:'` echo 'Detected RHEL or Fedora:'
if [ -f "/etc/init.d/$APP_NAME" ] ; then if [ -f "/etc/init.d/$APP_NAME" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
/sbin/chkconfig "$APP_NAME" off /sbin/chkconfig "$APP_NAME" off
/sbin/chkconfig --del "$APP_NAME" /sbin/chkconfig --del "$APP_NAME"
rm -f "/etc/init.d/$APP_NAME" rm -f "/etc/init.d/$APP_NAME"
elif [ -f "/etc/init/${APP_NAME}.conf" ] ; then elif [ -f "/etc/init/${APP_NAME}.conf" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon from upstart...'` echo ' Removing $APP_LONG_NAME daemon from upstart...'
rm "/etc/init/${APP_NAME}.conf" rm "/etc/init/${APP_NAME}.conf"
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ -f /etc/slackware-version ] ; then elif [ -f /etc/slackware-version ] ; then
eval echo `gettext 'Detected Slackware Linux:'` echo 'Detected Slackware Linux:'
if grep -q ${APP_NAME}router /etc/rc.d/rc.local > /dev/null 2>&1 ; then if grep -q ${APP_NAME}router /etc/rc.d/rc.local > /dev/null 2>&1 ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
sed -i "/i2prouter/d" /etc/rc.d/rc.local /etc/rc.d/rc.local_shutdown sed -i "/i2prouter/d" /etc/rc.d/rc.local /etc/rc.d/rc.local_shutdown
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ -f /etc/arch-release ] ; then elif [ -f /etc/arch-release ] ; then
eval echo `gettext 'Detected Arch Linux:'` echo 'Detected Arch Linux:'
if [ -f "/etc/rc.d/$APP_NAME" -o -f "$SYSTEMD_SERVICE" ] ; then if [ -f "/etc/rc.d/$APP_NAME" -o -f "$SYSTEMD_SERVICE" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo "`gettext 'Removing $APP_LONG_NAME daemon'`..."
rm -f "/etc/rc.d/$APP_NAME" rm -f "/etc/rc.d/$APP_NAME"
rm -f "$SYSTEMD_SERVICE" rm -f "$SYSTEMD_SERVICE"
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ -f /etc/SuSE-release ] ; then elif [ -f /etc/SuSE-release ] ; then
eval echo `gettext 'Detected SuSE or SLES:'` echo 'Detected SuSE or SLES:'
if [ -f "/etc/init.d/$APP_NAME" -o ${SYSTEMD_SERVICE} ] ; then if [ -f "/etc/init.d/$APP_NAME" -o ${SYSTEMD_SERVICE} ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
insserv -r "/etc/init.d/$APP_NAME" insserv -r "/etc/init.d/$APP_NAME"
rm -f "/etc/init.d/$APP_NAME" rm -f "/etc/init.d/$APP_NAME"
rm -f "$SYSTEMD_SERVICE" rm -f "$SYSTEMD_SERVICE"
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ -f /etc/lsb-release -o -f /etc/debian_version ] ; then elif [ -f /etc/lsb-release -o -f /etc/debian_version ] ; then
eval echo `gettext 'Detected Debian-based distribution:'` echo 'Detected Debian-based distribution:'
if [ -f "/etc/init.d/$APP_NAME" ] ; then if [ -f "/etc/init.d/$APP_NAME" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon from init.d...'` echo ' Removing $APP_LONG_NAME daemon from init.d...'
update-rc.d -f "$APP_NAME" remove update-rc.d -f "$APP_NAME" remove
rm -f "/etc/init.d/$APP_NAME" rm -f "/etc/init.d/$APP_NAME"
elif [ -f "/etc/init/${APP_NAME}.conf" ] ; then elif [ -f "/etc/init/${APP_NAME}.conf" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon from upstart...'` echo ' Removing $APP_LONG_NAME daemon from upstart...'
rm "/etc/init/${APP_NAME}.conf" rm "/etc/init/${APP_NAME}.conf"
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
else else
eval echo `gettext 'Detected Linux:'` echo 'Detected Linux:'
if [ -f "/etc/init.d/$APP_NAME" ] ; then if [ -f "/etc/init.d/$APP_NAME" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
for i in "/etc/rc3.d/K20$APP_NAME_LOWER" "/etc/rc5.d/K20$APP_NAME_LOWER" "/etc/rc3.d/S20$APP_NAME_LOWER" "/etc/init.d/$APP_NAME" "/etc/rc5.d/S20$APP_NAME_LOWER" for i in "/etc/rc3.d/K20$APP_NAME_LOWER" "/etc/rc5.d/K20$APP_NAME_LOWER" "/etc/rc3.d/S20$APP_NAME_LOWER" "/etc/init.d/$APP_NAME" "/etc/rc5.d/S20$APP_NAME_LOWER"
do do
rm -f $i rm -f $i
done done
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
fi fi
elif [ "$DIST_OS" = "hpux" ] ; then elif [ "$DIST_OS" = "hpux" ] ; then
eval echo `gettext 'Detected HP-UX:'` echo 'Detected HP-UX:'
if [ -f "/sbin/init.d/$APP_NAME" ] ; then if [ -f "/sbin/init.d/$APP_NAME" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
for i in "/sbin/rc3.d/K20$APP_NAME_LOWER" "/sbin/rc3.d/S20$APP_NAME_LOWER" "/sbin/init.d/$APP_NAME" for i in "/sbin/rc3.d/K20$APP_NAME_LOWER" "/sbin/rc3.d/S20$APP_NAME_LOWER" "/sbin/init.d/$APP_NAME"
do do
rm -f $i rm -f $i
done done
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ "$DIST_OS" = "aix" ] ; then elif [ "$DIST_OS" = "aix" ] ; then
eval echo `gettext 'Detected AIX:'` echo 'Detected AIX:'
if [ -f "/etc/rc.d/init.d/$APP_NAME" -o -n "`/usr/sbin/lsitab $APP_NAME`" -o -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then if [ -f "/etc/rc.d/init.d/$APP_NAME" -o -n "`/usr/sbin/lsitab $APP_NAME`" -o -n "`/usr/bin/lssrc -S -s $APP_NAME`" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
if [ -f "/etc/rc.d/init.d/$APP_NAME" ] ; then if [ -f "/etc/rc.d/init.d/$APP_NAME" ] ; then
for i in "/etc/rc.d/rc2.d/S20$APP_NAME_LOWER" "/etc/rc.d/rc2.d/K20$APP_NAME_LOWER" "/etc/rc.d/init.d/$APP_NAME" for i in "/etc/rc.d/rc2.d/S20$APP_NAME_LOWER" "/etc/rc.d/rc2.d/K20$APP_NAME_LOWER" "/etc/rc.d/init.d/$APP_NAME"
do do
@@ -1636,26 +1625,26 @@ removedaemon() {
/usr/bin/rmssys -s $APP_NAME /usr/bin/rmssys -s $APP_NAME
fi fi
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ "$DIST_OS" = "freebsd" ] ; then elif [ "$DIST_OS" = "freebsd" ] ; then
eval echo `gettext 'Detected FreeBSD:'` echo 'Detected FreeBSD:'
if [ -f "/etc/rc.d/$APP_NAME" ] ; then if [ -f "/etc/rc.d/$APP_NAME" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
for i in "/etc/rc.d/$APP_NAME" for i in "/etc/rc.d/$APP_NAME"
do do
rm -f $i rm -f $i
done done
sed -i .bak "/${APP_NAME}_enable=\"YES\"/d" /etc/rc.conf sed -i .bak "/${APP_NAME}_enable=\"YES\"/d" /etc/rc.conf
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ "$DIST_OS" = "macosx" ] ; then elif [ "$DIST_OS" = "macosx" ] ; then
eval echo `gettext 'Detected Mac OSX:'` echo 'Detected Mac OSX:'
if [ -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then if [ -f "/Library/LaunchDaemons/${APP_PLIST}" ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
# Make sure the plist is installed # Make sure the plist is installed
LOADED_PLIST=`launchctl list | grep ${APP_PLIST_BASE}` LOADED_PLIST=`launchctl list | grep ${APP_PLIST_BASE}`
if [ "X${LOADED_PLIST}" != "X" ] ; then if [ "X${LOADED_PLIST}" != "X" ] ; then
@@ -1663,18 +1652,18 @@ removedaemon() {
fi fi
rm -f "/Library/LaunchDaemons/${APP_PLIST}" rm -f "/Library/LaunchDaemons/${APP_PLIST}"
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
elif [ "$DIST_OS" = "zos" ] ; then elif [ "$DIST_OS" = "zos" ] ; then
eval echo `gettext 'Detected z/OS:'` echo 'Detected z/OS:'
if [ -f /etc/rc.bak ] ; then if [ -f /etc/rc.bak ] ; then
eval echo `gettext ' Removing $APP_LONG_NAME daemon...'` eval echo " `gettext 'Removing $APP_LONG_NAME daemon'`..."
cp /etc/rc /etc/rc.bak cp /etc/rc /etc/rc.bak
sed "s/_BPX_JOBNAME=\'APP_NAME\'.*//g" /etc/rc.bak > /etc/rc sed "s/_BPX_JOBNAME=\'APP_NAME\'.*//g" /etc/rc.bak > /etc/rc
rm /etc/rc.bak rm /etc/rc.bak
else else
eval echo `gettext ' The $APP_LONG_NAME daemon is not currently installed.'` eval echo " `gettext 'The $APP_LONG_NAME daemon is not currently installed.'`"
exit 1 exit 1
fi fi
else else
@@ -1685,7 +1674,7 @@ removedaemon() {
} }
dump() { dump() {
eval echo `gettext 'Dumping $APP_LONG_NAME...'` echo 'Dumping $APP_LONG_NAME...'
getpid getpid
if [ "X$pid" = "X" ] if [ "X$pid" = "X" ]
then then
@@ -1695,10 +1684,10 @@ dump() {
if [ $? -ne 0 ] if [ $? -ne 0 ]
then then
eval echo `gettext 'Failed to dump $APP_LONG_NAME.'` echo 'Failed to dump $APP_LONG_NAME.'
exit 1 exit 1
else else
eval echo `gettext 'Dumped $APP_LONG_NAME.'` echo 'Dumped $APP_LONG_NAME.'
fi fi
fi fi
} }
@@ -1708,14 +1697,14 @@ startmsg() {
getpid getpid
if [ "X$pid" = "X" ] if [ "X$pid" = "X" ]
then then
eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:Stopped'` echo 'Starting $APP_LONG_NAME... Wrapper:Stopped'
else else
if [ "X$DETAIL_STATUS" = "X" ] if [ "X$DETAIL_STATUS" = "X" ]
then then
eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:Running'` echo 'Starting $APP_LONG_NAME... Wrapper:Running'
else else
getstatus getstatus
eval echo `gettext 'Starting $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS'` echo 'Starting $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS'
fi fi
fi fi
} }
@@ -1725,14 +1714,14 @@ stopmsg() {
getpid getpid
if [ "X$pid" = "X" ] if [ "X$pid" = "X" ]
then then
eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:Stopped'` echo 'Stopping $APP_LONG_NAME... Wrapper:Stopped'
else else
if [ "X$DETAIL_STATUS" = "X" ] if [ "X$DETAIL_STATUS" = "X" ]
then then
eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:Running'` echo 'Stopping $APP_LONG_NAME... Wrapper:Running'
else else
getstatus getstatus
eval echo `gettext 'Stopping $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS'` echo 'Stopping $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS'
fi fi
fi fi
} }
@@ -1742,11 +1731,11 @@ showUsage() {
if [ -n "$1" ] if [ -n "$1" ]
then then
eval echo `gettext 'Unexpected command: $1'` echo 'Unexpected command: $1'
echo ""; echo "";
fi fi
eval MSG=`gettext 'Usage: '` MSG='Usage: '
if [ -n "$FIXED_COMMAND" ] ; then if [ -n "$FIXED_COMMAND" ] ; then
if [ -n "$PASS_THROUGH" ] ; then if [ -n "$PASS_THROUGH" ] ; then
echo "${MSG} $0 {JavaAppArgs}" echo "${MSG} $0 {JavaAppArgs}"
@@ -1754,18 +1743,10 @@ showUsage() {
echo "${MSG} $0" echo "${MSG} $0"
fi fi
else else
if [ -n "$PAUSABLE" ] ; then
if [ -n "$PASS_THROUGH" ] ; then
echo "${MSG} $0 [ console {JavaAppArgs} | start {JavaAppArgs} | stop | restart {JavaAppArgs} | condrestart {JavaAppArgs} | pause | resume | status | install | remove | dump ]"
else
echo "${MSG} $0 [ console | start | stop | restart | condrestart | pause | resume | status | install | remove | dump ]"
fi
else
if [ -n "$PASS_THROUGH" ] ; then if [ -n "$PASS_THROUGH" ] ; then
echo "${MSG} $0 [ console {JavaAppArgs} | start {JavaAppArgs} | stop | restart {JavaAppArgs} | condrestart {JavaAppArgs} | status | install | remove | dump ]" echo "${MSG} $0 [ console {JavaAppArgs} | start {JavaAppArgs} | stop | restart {JavaAppArgs} | condrestart {JavaAppArgs} | status | install | remove | dump ]"
else else
echo "${MSG} $0 [ console | start | stop | restart | condrestart | status | install | remove | dump ]" echo "${MSG} $0 [ console | start | stop | restart | condrestart | status | install | remove | dump ]"
fi
fi fi
fi fi
@@ -1774,24 +1755,20 @@ showUsage() {
echo ""; echo "";
if [ ! -n "$FIXED_COMMAND" ] ; then if [ ! -n "$FIXED_COMMAND" ] ; then
echo "`gettext 'Commands:'`" echo "`gettext 'Commands:'`"
echo "`gettext ' console Launch in the current console.'`" echo " console `gettext 'Launch in the current console.'`"
echo "`gettext ' start Start in the background as a daemon process.'`" echo " start `gettext 'Start in the background as a daemon process.'`"
echo "`gettext ' stop Stop if running as a daemon or in another console.'`" echo " stop `gettext 'Stop if running as a daemon or in another console.'`"
echo "`gettext ' graceful Stop gracefully, may take up to 11 minutes.'`" echo " graceful `gettext 'Stop gracefully, may take up to 11 minutes.'`"
echo "`gettext ' restart Stop if running and then start.'`" echo " restart `gettext 'Stop if running and then start.'`"
echo "`gettext ' condrestart Restart only if already running.'`" echo " condrestart `gettext 'Restart only if already running.'`"
if [ -n "$PAUSABLE" ] ; then echo " status `gettext 'Query the current status.'`"
echo "`gettext ' pause Pause if running.'`" echo " install `gettext 'Install to start automatically when system boots.'`"
echo "`gettext ' resume Resume if paused.'`" echo " remove `gettext 'Uninstall.'`"
fi echo " dump `gettext 'Request a Java thread dump if running.'`"
echo "`gettext ' status Query the current status.'`"
echo "`gettext ' install Install to start automatically when system boots.'`"
echo "`gettext ' remove Uninstall.'`"
echo "`gettext ' dump Request a Java thread dump if running.'`"
echo ""; echo "";
fi fi
if [ -n "$PASS_THROUGH" ] ; then if [ -n "$PASS_THROUGH" ] ; then
echo "`gettext 'JavaAppArgs: Zero or more arguments which will be passed to the Java application.'`" echo "JavaAppArgs: Zero or more arguments which will be passed to the Java application."
echo ""; echo "";
fi fi
fi fi
@@ -1800,16 +1777,15 @@ showUsage() {
} }
showsetusermesg() { showsetusermesg() {
echo "Please edit $0 and set the variable RUN_AS_USER." echo "`gettext 'Please edit $0 and set the variable RUN_AS_USER'`."
} }
checkifstartingasroot() { checkifstartingasroot() {
if [ ! `grep ^RUN_AS_USER $0` ] && [ ! `grep ^ALLOW_ROOT $0` ] && [ `id -ur` = '0' ]; then if [ ! `grep ^RUN_AS_USER $0` ] && [ ! `grep ^ALLOW_ROOT $0` ] && [ `id -ur` = '0' ]; then
echo "Running I2P as the root user is *not* recommended." echo "`gettext 'Running I2P as the root user is *not* recommended.'`"
showsetusermesg showsetusermesg
echo echo
echo "If you'd like to run as root anyway you can edit" echo "`gettext 'To run as root anyway, edit $0 and set ALLOW_ROOT=true.'`"
echo "$0 and set ALLOW_ROOT=true instead."
exit 1 exit 1
fi fi
} }
@@ -1869,24 +1845,6 @@ docommand() {
start "$@" start "$@"
;; ;;
'pause')
if [ -n "$PAUSABLE" ]
then
pause
else
showUsage "$COMMAND"
fi
;;
'resume')
if [ -n "$PAUSABLE" ]
then
resume
else
showUsage "$COMMAND"
fi
;;
'status') 'status')
checkUser "" "$COMMAND" checkUser "" "$COMMAND"
status status

View File

@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-07-26 19:55+0000\n" "POT-Creation-Date: 2012-12-22 15:07+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,397 +17,180 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: ../i2prouter:316 #: ../i2prouter:195
msgid "Unable to locate \"ps\"." msgid "Failed to load the wrapper"
msgstr "" msgstr ""
#: ../i2prouter:317 ../i2prouter:330 ../i2prouter:645 #: ../i2prouter:892 ../i2prouter:919 ../i2prouter:993 ../i2prouter:1021
msgid "" #: ../i2prouter:1045
"Please report this message along with the location of the command on your "
"system."
msgstr ""
#: ../i2prouter:329
msgid "Unable to locate \"tr\"."
msgstr ""
#: ../i2prouter:484
msgid " $1 Found but not executable."
msgstr ""
#: ../i2prouter:543
msgid "Unable to locate any of the following binaries:"
msgstr ""
#: ../i2prouter:644
msgid "Unable to locate \"id\"."
msgstr ""
#: ../i2prouter:784
#, sh-format
msgid "Removed stale pid file: $PIDFILE"
msgstr ""
#: ../i2prouter:789
#, sh-format
msgid "Cannot read $PIDFILE."
msgstr ""
#: ../i2prouter:879 ../i2prouter:906 ../i2prouter:980 ../i2prouter:1008
#: ../i2prouter:1032
#, sh-format #, sh-format
msgid "$APP_LONG_NAME is already running." msgid "$APP_LONG_NAME is already running."
msgstr "" msgstr ""
#: ../i2prouter:890 #: ../i2prouter:903
#, sh-format #, sh-format
msgid "Running $APP_LONG_NAME..." msgid "Running $APP_LONG_NAME"
msgstr "" msgstr ""
#: ../i2prouter:913 #: ../i2prouter:926
#, sh-format #, sh-format
msgid "Waiting for $APP_LONG_NAME..." msgid "Waiting for $APP_LONG_NAME"
msgstr "" msgstr ""
#: ../i2prouter:960 #: ../i2prouter:973
#, sh-format #, sh-format
msgid " WARNING: $APP_LONG_NAME may have failed to start." msgid "WARNING: $APP_LONG_NAME may have failed to start."
msgstr "" msgstr ""
#: ../i2prouter:963 #: ../i2prouter:987 ../i2prouter:1015 ../i2prouter:1224 ../i2prouter:1513
#, sh-format
msgid " running: PID:$pid"
msgstr ""
#: ../i2prouter:972
#, sh-format
msgid ""
"Starting $APP_LONG_NAME. Detected Mac OSX and installed launchd daemon."
msgstr ""
#: ../i2prouter:974 ../i2prouter:1002 ../i2prouter:1190 ../i2prouter:1442
msgid "Must be root to perform this action." msgid "Must be root to perform this action."
msgstr "" msgstr ""
#: ../i2prouter:1000 #: ../i2prouter:1031
#, sh-format #, sh-format
msgid "Starting $APP_LONG_NAME. Detected Linux and installed upstart." msgid "Starting $APP_LONG_NAME"
msgstr "" msgstr ""
#: ../i2prouter:1018 #: ../i2prouter:1056
#, sh-format #, sh-format
msgid "Starting $APP_LONG_NAME..." msgid "Stopping $APP_LONG_NAME"
msgstr "" msgstr ""
#: ../i2prouter:1043 #: ../i2prouter:1060 ../i2prouter:1128 ../i2prouter:1681
#, sh-format
msgid "Stopping $APP_LONG_NAME..."
msgstr ""
#: ../i2prouter:1047 ../i2prouter:1115 ../i2prouter:1599
#, sh-format #, sh-format
msgid "$APP_LONG_NAME was not running." msgid "$APP_LONG_NAME was not running."
msgstr "" msgstr ""
#: ../i2prouter:1060 ../i2prouter:1068 ../i2prouter:1130 ../i2prouter:1138 #: ../i2prouter:1073 ../i2prouter:1081 ../i2prouter:1143 ../i2prouter:1151
#, sh-format #, sh-format
msgid "Unable to stop $APP_LONG_NAME." msgid "Unable to stop $APP_LONG_NAME."
msgstr "" msgstr ""
#: ../i2prouter:1086 #: ../i2prouter:1099
#, sh-format #, sh-format
msgid "Waiting for $APP_LONG_NAME to exit..." msgid "Waiting for $APP_LONG_NAME to exit"
msgstr "" msgstr ""
#: ../i2prouter:1100 #: ../i2prouter:1113
#, sh-format #, sh-format
msgid "Failed to stop $APP_LONG_NAME." msgid "Failed to stop $APP_LONG_NAME."
msgstr "" msgstr ""
#: ../i2prouter:1103 #: ../i2prouter:1116
#, sh-format #, sh-format
msgid "Stopped $APP_LONG_NAME." msgid "Stopped $APP_LONG_NAME."
msgstr "" msgstr ""
#: ../i2prouter:1111 #: ../i2prouter:1124
#, sh-format #, sh-format
msgid "Stopping $APP_LONG_NAME gracefully..." msgid "Stopping $APP_LONG_NAME gracefully"
msgstr "" msgstr ""
#: ../i2prouter:1146 #: ../i2prouter:1170
#, sh-format
msgid "Pausing $APP_LONG_NAME."
msgstr ""
#: ../i2prouter:1150
#, sh-format
msgid "Resuming $APP_LONG_NAME."
msgstr ""
#: ../i2prouter:1157
#, sh-format #, sh-format
msgid "$APP_LONG_NAME is not running." msgid "$APP_LONG_NAME is not running."
msgstr "" msgstr ""
#: ../i2prouter:1162 #: ../i2prouter:1175
#, sh-format #, sh-format
msgid "$APP_LONG_NAME is running: PID:$pid" msgid "$APP_LONG_NAME is running: PID:$pid"
msgstr "" msgstr ""
#: ../i2prouter:1165 #: ../i2prouter:1178
#, sh-format #, sh-format
msgid "$APP_LONG_NAME is running: PID:$pid, Wrapper:$STATUS, Java:$JAVASTATUS" msgid "$APP_LONG_NAME is running: PID:$pid, Wrapper:$STATUS, Java:$JAVASTATUS"
msgstr "" msgstr ""
#: ../i2prouter:1172 #: ../i2prouter:1231 ../i2prouter:1243 ../i2prouter:1262 ../i2prouter:1279
#: ../i2prouter:1346 ../i2prouter:1366 ../i2prouter:1380 ../i2prouter:1394
#: ../i2prouter:1422 ../i2prouter:1460 ../i2prouter:1495
#, sh-format #, sh-format
msgid " Installing the $APP_LONG_NAME daemon using upstart.." msgid "The $APP_LONG_NAME daemon is already installed."
msgstr "" msgstr ""
#: ../i2prouter:1174 #: ../i2prouter:1234 ../i2prouter:1249 ../i2prouter:1351 ../i2prouter:1383
#: ../i2prouter:1397 ../i2prouter:1411 ../i2prouter:1425 ../i2prouter:1463
#: ../i2prouter:1498
#, sh-format #, sh-format
msgid " a custom upstart conf file ${APP_NAME}.conf found" msgid "Installing the $APP_LONG_NAME daemon"
msgstr "" msgstr ""
#: ../i2prouter:1177 #: ../i2prouter:1505
msgid " creating default upstart conf file.."
msgstr ""
#: ../i2prouter:1195 ../i2prouter:1448
msgid "Detected Solaris:"
msgstr ""
#: ../i2prouter:1197 ../i2prouter:1209 ../i2prouter:1227 ../i2prouter:1284
#: ../i2prouter:1295 ../i2prouter:1309 ../i2prouter:1323 ../i2prouter:1351
#: ../i2prouter:1389 ../i2prouter:1424
#, sh-format
msgid " The $APP_LONG_NAME daemon is already installed."
msgstr ""
#: ../i2prouter:1200 ../i2prouter:1215 ../i2prouter:1287 ../i2prouter:1312
#: ../i2prouter:1326 ../i2prouter:1340 ../i2prouter:1354 ../i2prouter:1392
#: ../i2prouter:1427
#, sh-format
msgid " Installing the $APP_LONG_NAME daemon.."
msgstr ""
#: ../i2prouter:1207 ../i2prouter:1461
msgid "Detected RHEL or Fedora:"
msgstr ""
#: ../i2prouter:1222 ../i2prouter:1475
msgid "Detected Arch Linux:"
msgstr ""
#: ../i2prouter:1224
msgid "Initscript from AUR package found. Refusing to continue."
msgstr ""
#: ../i2prouter:1277
#, sh-format
msgid " The $APP_LONG_NAME daemon has been installed."
msgstr ""
#: ../i2prouter:1278
msgid " Add \\\"i2p\\\" to the DAEMONS variable in /etc/rc.conf to enable."
msgstr ""
#: ../i2prouter:1282 ../i2prouter:1484
msgid "Detected SuSE or SLES:"
msgstr ""
#: ../i2prouter:1293 ../i2prouter:1494
msgid "Detected Debian-based distribution:"
msgstr ""
#: ../i2prouter:1301
#, sh-format
msgid " Installing the $APP_LONG_NAME daemon using init.d.."
msgstr ""
#: ../i2prouter:1307 ../i2prouter:1507
msgid "Detected Linux:"
msgstr ""
#: ../i2prouter:1321 ../i2prouter:1520
msgid "Detected HP-UX:"
msgstr ""
#: ../i2prouter:1332 ../i2prouter:1532
msgid "Detected AIX:"
msgstr ""
#: ../i2prouter:1334
#, sh-format
msgid " The $APP_LONG_NAME daemon is already installed as rc.d script."
msgstr ""
#: ../i2prouter:1337
#, sh-format
msgid " The $APP_LONG_NAME daemon is already installed as SRC service."
msgstr ""
#: ../i2prouter:1342
msgid ""
" The task /usr/sbin/install_assist was found in the inittab, this might "
"cause problems for all subsequent tasks to launch at this process is known "
"to block the init task. Please make sure this task is not needed anymore and "
"remove/deactivate it."
msgstr ""
#: ../i2prouter:1349 ../i2prouter:1550
msgid "Detected FreeBSD:"
msgstr ""
#: ../i2prouter:1387 ../i2prouter:1563
msgid "Detected Mac OSX:"
msgstr ""
#: ../i2prouter:1422 ../i2prouter:1577
msgid "Detected z/OS:"
msgstr ""
#: ../i2prouter:1434
#, sh-format #, sh-format
msgid "Install not currently supported for $DIST_OS" msgid "Install not currently supported for $DIST_OS"
msgstr "" msgstr ""
#: ../i2prouter:1450 ../i2prouter:1463 ../i2prouter:1477 ../i2prouter:1486 #: ../i2prouter:1521 ../i2prouter:1534 ../i2prouter:1548 ../i2prouter:1557
#: ../i2prouter:1509 ../i2prouter:1522 ../i2prouter:1534 ../i2prouter:1552 #: ../i2prouter:1567 ../i2prouter:1591 ../i2prouter:1604 ../i2prouter:1616
#: ../i2prouter:1565 ../i2prouter:1579 #: ../i2prouter:1634 ../i2prouter:1647 ../i2prouter:1661
#, sh-format #, sh-format
msgid " Removing $APP_LONG_NAME daemon..." msgid "Removing $APP_LONG_NAME daemon"
msgstr "" msgstr ""
#: ../i2prouter:1456 ../i2prouter:1471 ../i2prouter:1480 ../i2prouter:1490 #: ../i2prouter:1527 ../i2prouter:1542 ../i2prouter:1551 ../i2prouter:1561
#: ../i2prouter:1503 ../i2prouter:1515 ../i2prouter:1528 ../i2prouter:1546 #: ../i2prouter:1572 ../i2prouter:1585 ../i2prouter:1597 ../i2prouter:1610
#: ../i2prouter:1559 ../i2prouter:1573 ../i2prouter:1584 #: ../i2prouter:1628 ../i2prouter:1641 ../i2prouter:1655 ../i2prouter:1666
#, sh-format #, sh-format
msgid " The $APP_LONG_NAME daemon is not currently installed." msgid "The $APP_LONG_NAME daemon is not currently installed."
msgstr "" msgstr ""
#: ../i2prouter:1468 ../i2prouter:1500 #: ../i2prouter:1670
#, sh-format
msgid " Removing $APP_LONG_NAME daemon from upstart..."
msgstr ""
#: ../i2prouter:1496
#, sh-format
msgid " Removing $APP_LONG_NAME daemon from init.d..."
msgstr ""
#: ../i2prouter:1588
#, sh-format #, sh-format
msgid "Remove not currently supported for $DIST_OS" msgid "Remove not currently supported for $DIST_OS"
msgstr "" msgstr ""
#: ../i2prouter:1595 #: ../i2prouter:1757
#, sh-format
msgid "Dumping $APP_LONG_NAME..."
msgstr ""
#: ../i2prouter:1605
#, sh-format
msgid "Failed to dump $APP_LONG_NAME."
msgstr ""
#: ../i2prouter:1608
#, sh-format
msgid "Dumped $APP_LONG_NAME."
msgstr ""
#: ../i2prouter:1618
#, sh-format
msgid "Starting $APP_LONG_NAME... Wrapper:Stopped"
msgstr ""
#: ../i2prouter:1622
#, sh-format
msgid "Starting $APP_LONG_NAME... Wrapper:Running"
msgstr ""
#: ../i2prouter:1625
#, sh-format
msgid "Starting $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS"
msgstr ""
#: ../i2prouter:1635
#, sh-format
msgid "Stopping $APP_LONG_NAME... Wrapper:Stopped"
msgstr ""
#: ../i2prouter:1639
#, sh-format
msgid "Stopping $APP_LONG_NAME... Wrapper:Running"
msgstr ""
#: ../i2prouter:1642
#, sh-format
msgid "Stopping $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS"
msgstr ""
#: ../i2prouter:1652
msgid "Unexpected command: $1"
msgstr ""
#: ../i2prouter:1656
msgid "Usage: "
msgstr ""
#: ../i2prouter:1683
msgid "Commands:" msgid "Commands:"
msgstr "" msgstr ""
#: ../i2prouter:1684 #: ../i2prouter:1758
msgid " console Launch in the current console." msgid "Launch in the current console."
msgstr "" msgstr ""
#: ../i2prouter:1685 #: ../i2prouter:1759
msgid " start Start in the background as a daemon process." msgid "Start in the background as a daemon process."
msgstr "" msgstr ""
#: ../i2prouter:1686 #: ../i2prouter:1760
msgid " stop Stop if running as a daemon or in another console." msgid "Stop if running as a daemon or in another console."
msgstr "" msgstr ""
#: ../i2prouter:1687 #: ../i2prouter:1761
msgid " graceful Stop gracefully, may take up to 11 minutes." msgid "Stop gracefully, may take up to 11 minutes."
msgstr "" msgstr ""
#: ../i2prouter:1688 #: ../i2prouter:1762
msgid " restart Stop if running and then start." msgid "Stop if running and then start."
msgstr "" msgstr ""
#: ../i2prouter:1689 #: ../i2prouter:1763
msgid " condrestart Restart only if already running." msgid "Restart only if already running."
msgstr "" msgstr ""
#: ../i2prouter:1691 #: ../i2prouter:1764
msgid " pause Pause if running." msgid "Query the current status."
msgstr "" msgstr ""
#: ../i2prouter:1692 #: ../i2prouter:1765
msgid " resume Resume if paused." msgid "Install to start automatically when system boots."
msgstr "" msgstr ""
#: ../i2prouter:1694 #: ../i2prouter:1766
msgid " status Query the current status." msgid "Uninstall."
msgstr "" msgstr ""
#: ../i2prouter:1695 #: ../i2prouter:1767
msgid " install Install to start automatically when system boots." msgid "Request a Java thread dump if running."
msgstr "" msgstr ""
#: ../i2prouter:1696 #: ../i2prouter:1780
msgid " remove Uninstall." msgid "Please edit $0 and set the variable RUN_AS_USER"
msgstr "" msgstr ""
#: ../i2prouter:1697 #: ../i2prouter:1785
msgid " dump Request a Java thread dump if running." msgid "Running I2P as the root user is *not* recommended."
msgstr "" msgstr ""
#: ../i2prouter:1701 #: ../i2prouter:1788
msgid "" msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
"JavaAppArgs: Zero or more arguments which will be passed to the Java "
"application."
msgstr "" msgstr ""

View File

@@ -1,413 +1,197 @@
# SOME DESCRIPTIVE TITLE. # I2P
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # Copyright (C) 2012 The I2P Project
# This file is distributed under the same license as the PACKAGE package. # This file is distributed under the same license as the routerconsole package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # To contribute translations, see http://www.i2p2.de/newdevelopers
# foo <foo@bar>, 2012.
# #
#, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: I2P startup script\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-08-25 19:38+0000\n" "POT-Creation-Date: 2012-12-22 14:58+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2012-12-21 23:34+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: kytv <killyourtv@mail.i2p>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: English \n"
"Language: \n" "Language: English\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
#: ../i2prouter:316 #: ../i2prouter:195
msgid "Unable to locate \"ps\"." msgid "Failed to load the wrapper"
msgstr "" msgstr ""
#: ../i2prouter:317 ../i2prouter:330 ../i2prouter:645 #: ../i2prouter:892 ../i2prouter:919 ../i2prouter:993 ../i2prouter:1021
msgid "" #: ../i2prouter:1045
"Please report this message along with the location of the command on your "
"system."
msgstr ""
#: ../i2prouter:329
msgid "Unable to locate \"tr\"."
msgstr ""
#: ../i2prouter:484
msgid " $1 Found but not executable."
msgstr ""
#: ../i2prouter:543
msgid "Unable to locate any of the following binaries:"
msgstr ""
#: ../i2prouter:644
msgid "Unable to locate \"id\"."
msgstr ""
#: ../i2prouter:784
#, sh-format
msgid "Removed stale pid file: $PIDFILE"
msgstr ""
#: ../i2prouter:789
#, sh-format
msgid "Cannot read $PIDFILE."
msgstr ""
#: ../i2prouter:879 ../i2prouter:906 ../i2prouter:980 ../i2prouter:1008
#: ../i2prouter:1032
#, sh-format #, sh-format
msgid "$APP_LONG_NAME is already running." msgid "$APP_LONG_NAME is already running."
msgstr "" msgstr ""
#: ../i2prouter:890 #: ../i2prouter:903
#, sh-format #, sh-format
msgid "Running $APP_LONG_NAME..." msgid "Running $APP_LONG_NAME"
msgstr "" msgstr ""
#: ../i2prouter:913 #: ../i2prouter:926
#, sh-format #, sh-format
msgid "Waiting for $APP_LONG_NAME..." msgid "Waiting for $APP_LONG_NAME"
msgstr "" msgstr ""
#: ../i2prouter:960 #: ../i2prouter:973
#, sh-format #, sh-format
msgid " WARNING: $APP_LONG_NAME may have failed to start." msgid "WARNING: $APP_LONG_NAME may have failed to start."
msgstr "" msgstr ""
#: ../i2prouter:963 #: ../i2prouter:987 ../i2prouter:1015 ../i2prouter:1224 ../i2prouter:1513
#, sh-format
msgid " running: PID:$pid"
msgstr ""
#: ../i2prouter:972
#, sh-format
msgid ""
"Starting $APP_LONG_NAME. Detected Mac OSX and installed launchd daemon."
msgstr ""
#: ../i2prouter:974 ../i2prouter:1002 ../i2prouter:1190 ../i2prouter:1442
msgid "Must be root to perform this action." msgid "Must be root to perform this action."
msgstr "" msgstr ""
#: ../i2prouter:1000 #: ../i2prouter:1031
#, sh-format #, sh-format
msgid "Starting $APP_LONG_NAME. Detected Linux and installed upstart." msgid "Starting $APP_LONG_NAME"
msgstr "" msgstr ""
#: ../i2prouter:1018 #: ../i2prouter:1056
#, sh-format #, sh-format
msgid "Starting $APP_LONG_NAME..." msgid "Stopping $APP_LONG_NAME"
msgstr "" msgstr ""
#: ../i2prouter:1043 #: ../i2prouter:1060 ../i2prouter:1128 ../i2prouter:1681
#, sh-format
msgid "Stopping $APP_LONG_NAME..."
msgstr ""
#: ../i2prouter:1047 ../i2prouter:1115 ../i2prouter:1599
#, sh-format #, sh-format
msgid "$APP_LONG_NAME was not running." msgid "$APP_LONG_NAME was not running."
msgstr "" msgstr ""
#: ../i2prouter:1060 ../i2prouter:1068 ../i2prouter:1130 ../i2prouter:1138 #: ../i2prouter:1073 ../i2prouter:1081 ../i2prouter:1143 ../i2prouter:1151
#, sh-format #, sh-format
msgid "Unable to stop $APP_LONG_NAME." msgid "Unable to stop $APP_LONG_NAME."
msgstr "" msgstr ""
#: ../i2prouter:1086 #: ../i2prouter:1099
#, sh-format #, sh-format
msgid "Waiting for $APP_LONG_NAME to exit..." msgid "Waiting for $APP_LONG_NAME to exit"
msgstr "" msgstr ""
#: ../i2prouter:1100 #: ../i2prouter:1113
#, sh-format #, sh-format
msgid "Failed to stop $APP_LONG_NAME." msgid "Failed to stop $APP_LONG_NAME."
msgstr "" msgstr ""
#: ../i2prouter:1103 #: ../i2prouter:1116
#, sh-format #, sh-format
msgid "Stopped $APP_LONG_NAME." msgid "Stopped $APP_LONG_NAME."
msgstr "" msgstr ""
#: ../i2prouter:1111 #: ../i2prouter:1124
#, sh-format #, sh-format
msgid "Stopping $APP_LONG_NAME gracefully..." msgid "Stopping $APP_LONG_NAME gracefully"
msgstr "" msgstr ""
#: ../i2prouter:1146 #: ../i2prouter:1170
#, sh-format
msgid "Pausing $APP_LONG_NAME."
msgstr ""
#: ../i2prouter:1150
#, sh-format
msgid "Resuming $APP_LONG_NAME."
msgstr ""
#: ../i2prouter:1157
#, sh-format #, sh-format
msgid "$APP_LONG_NAME is not running." msgid "$APP_LONG_NAME is not running."
msgstr "" msgstr ""
#: ../i2prouter:1162 #: ../i2prouter:1175
#, sh-format #, sh-format
msgid "$APP_LONG_NAME is running: PID:$pid" msgid "$APP_LONG_NAME is running: PID:$pid"
msgstr "" msgstr ""
#: ../i2prouter:1165 #: ../i2prouter:1178
#, sh-format #, sh-format
msgid "$APP_LONG_NAME is running: PID:$pid, Wrapper:$STATUS, Java:$JAVASTATUS" msgid "$APP_LONG_NAME is running: PID:$pid, Wrapper:$STATUS, Java:$JAVASTATUS"
msgstr "" msgstr ""
#: ../i2prouter:1172 #: ../i2prouter:1231 ../i2prouter:1243 ../i2prouter:1262 ../i2prouter:1279
#: ../i2prouter:1346 ../i2prouter:1366 ../i2prouter:1380 ../i2prouter:1394
#: ../i2prouter:1422 ../i2prouter:1460 ../i2prouter:1495
#, sh-format #, sh-format
msgid " Installing the $APP_LONG_NAME daemon using upstart.." msgid "The $APP_LONG_NAME daemon is already installed."
msgstr "" msgstr ""
#: ../i2prouter:1174 #: ../i2prouter:1234 ../i2prouter:1249 ../i2prouter:1351 ../i2prouter:1383
#: ../i2prouter:1397 ../i2prouter:1411 ../i2prouter:1425 ../i2prouter:1463
#: ../i2prouter:1498
#, sh-format #, sh-format
msgid " a custom upstart conf file ${APP_NAME}.conf found" msgid "Installing the $APP_LONG_NAME daemon"
msgstr "" msgstr ""
#: ../i2prouter:1177 #: ../i2prouter:1505
msgid " creating default upstart conf file.."
msgstr ""
#: ../i2prouter:1195 ../i2prouter:1448
msgid "Detected Solaris:"
msgstr ""
#: ../i2prouter:1197 ../i2prouter:1209 ../i2prouter:1227 ../i2prouter:1284
#: ../i2prouter:1295 ../i2prouter:1309 ../i2prouter:1323 ../i2prouter:1351
#: ../i2prouter:1389 ../i2prouter:1424
#, sh-format
msgid " The $APP_LONG_NAME daemon is already installed."
msgstr ""
#: ../i2prouter:1200 ../i2prouter:1215 ../i2prouter:1287 ../i2prouter:1312
#: ../i2prouter:1326 ../i2prouter:1340 ../i2prouter:1354 ../i2prouter:1392
#: ../i2prouter:1427
#, sh-format
msgid " Installing the $APP_LONG_NAME daemon.."
msgstr ""
#: ../i2prouter:1207 ../i2prouter:1461
msgid "Detected RHEL or Fedora:"
msgstr ""
#: ../i2prouter:1222 ../i2prouter:1475
msgid "Detected Arch Linux:"
msgstr ""
#: ../i2prouter:1224
msgid "Initscript from AUR package found. Refusing to continue."
msgstr ""
#: ../i2prouter:1277
#, sh-format
msgid " The $APP_LONG_NAME daemon has been installed."
msgstr ""
#: ../i2prouter:1278
msgid " Add \\\"i2p\\\" to the DAEMONS variable in /etc/rc.conf to enable."
msgstr ""
#: ../i2prouter:1282 ../i2prouter:1484
msgid "Detected SuSE or SLES:"
msgstr ""
#: ../i2prouter:1293 ../i2prouter:1494
msgid "Detected Debian-based distribution:"
msgstr ""
#: ../i2prouter:1301
#, sh-format
msgid " Installing the $APP_LONG_NAME daemon using init.d.."
msgstr ""
#: ../i2prouter:1307 ../i2prouter:1507
msgid "Detected Linux:"
msgstr ""
#: ../i2prouter:1321 ../i2prouter:1520
msgid "Detected HP-UX:"
msgstr ""
#: ../i2prouter:1332 ../i2prouter:1532
msgid "Detected AIX:"
msgstr ""
#: ../i2prouter:1334
#, sh-format
msgid " The $APP_LONG_NAME daemon is already installed as rc.d script."
msgstr ""
#: ../i2prouter:1337
#, sh-format
msgid " The $APP_LONG_NAME daemon is already installed as SRC service."
msgstr ""
#: ../i2prouter:1342
msgid ""
" The task /usr/sbin/install_assist was found in the inittab, this might "
"cause problems for all subsequent tasks to launch at this process is known "
"to block the init task. Please make sure this task is not needed anymore and "
"remove/deactivate it."
msgstr ""
#: ../i2prouter:1349 ../i2prouter:1550
msgid "Detected FreeBSD:"
msgstr ""
#: ../i2prouter:1387 ../i2prouter:1563
msgid "Detected Mac OSX:"
msgstr ""
#: ../i2prouter:1422 ../i2prouter:1577
msgid "Detected z/OS:"
msgstr ""
#: ../i2prouter:1434
#, sh-format #, sh-format
msgid "Install not currently supported for $DIST_OS" msgid "Install not currently supported for $DIST_OS"
msgstr "" msgstr ""
#: ../i2prouter:1450 ../i2prouter:1463 ../i2prouter:1477 ../i2prouter:1486 #: ../i2prouter:1521 ../i2prouter:1534 ../i2prouter:1548 ../i2prouter:1557
#: ../i2prouter:1509 ../i2prouter:1522 ../i2prouter:1534 ../i2prouter:1552 #: ../i2prouter:1567 ../i2prouter:1591 ../i2prouter:1604 ../i2prouter:1616
#: ../i2prouter:1565 ../i2prouter:1579 #: ../i2prouter:1634 ../i2prouter:1647 ../i2prouter:1661
#, sh-format #, sh-format
msgid " Removing $APP_LONG_NAME daemon..." msgid "Removing $APP_LONG_NAME daemon"
msgstr "" msgstr ""
#: ../i2prouter:1456 ../i2prouter:1471 ../i2prouter:1480 ../i2prouter:1490 #: ../i2prouter:1527 ../i2prouter:1542 ../i2prouter:1551 ../i2prouter:1561
#: ../i2prouter:1503 ../i2prouter:1515 ../i2prouter:1528 ../i2prouter:1546 #: ../i2prouter:1572 ../i2prouter:1585 ../i2prouter:1597 ../i2prouter:1610
#: ../i2prouter:1559 ../i2prouter:1573 ../i2prouter:1584 #: ../i2prouter:1628 ../i2prouter:1641 ../i2prouter:1655 ../i2prouter:1666
#, sh-format #, sh-format
msgid " The $APP_LONG_NAME daemon is not currently installed." msgid "The $APP_LONG_NAME daemon is not currently installed."
msgstr "" msgstr ""
#: ../i2prouter:1468 ../i2prouter:1500 #: ../i2prouter:1670
#, sh-format
msgid " Removing $APP_LONG_NAME daemon from upstart..."
msgstr ""
#: ../i2prouter:1496
#, sh-format
msgid " Removing $APP_LONG_NAME daemon from init.d..."
msgstr ""
#: ../i2prouter:1588
#, sh-format #, sh-format
msgid "Remove not currently supported for $DIST_OS" msgid "Remove not currently supported for $DIST_OS"
msgstr "" msgstr ""
#: ../i2prouter:1595 #: ../i2prouter:1757
#, sh-format
msgid "Dumping $APP_LONG_NAME..."
msgstr ""
#: ../i2prouter:1605
#, sh-format
msgid "Failed to dump $APP_LONG_NAME."
msgstr ""
#: ../i2prouter:1608
#, sh-format
msgid "Dumped $APP_LONG_NAME."
msgstr ""
#: ../i2prouter:1618
#, sh-format
msgid "Starting $APP_LONG_NAME... Wrapper:Stopped"
msgstr ""
#: ../i2prouter:1622
#, sh-format
msgid "Starting $APP_LONG_NAME... Wrapper:Running"
msgstr ""
#: ../i2prouter:1625
#, sh-format
msgid "Starting $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS"
msgstr ""
#: ../i2prouter:1635
#, sh-format
msgid "Stopping $APP_LONG_NAME... Wrapper:Stopped"
msgstr ""
#: ../i2prouter:1639
#, sh-format
msgid "Stopping $APP_LONG_NAME... Wrapper:Running"
msgstr ""
#: ../i2prouter:1642
#, sh-format
msgid "Stopping $APP_LONG_NAME... Wrapper:$STATUS, Java:$JAVASTATUS"
msgstr ""
#: ../i2prouter:1652
msgid "Unexpected command: $1"
msgstr ""
#: ../i2prouter:1656
msgid "Usage: "
msgstr ""
#: ../i2prouter:1683
msgid "Commands:" msgid "Commands:"
msgstr "" msgstr ""
#: ../i2prouter:1684 #: ../i2prouter:1758
msgid " console Launch in the current console." msgid "Launch in the current console."
msgstr "" msgstr ""
#: ../i2prouter:1685 #: ../i2prouter:1759
msgid " start Start in the background as a daemon process." msgid "Start in the background as a daemon process."
msgstr "" msgstr ""
#: ../i2prouter:1686 #: ../i2prouter:1760
msgid " stop Stop if running as a daemon or in another console." msgid "Stop if running as a daemon or in another console."
msgstr "" msgstr ""
#: ../i2prouter:1687 #: ../i2prouter:1761
msgid " graceful Stop gracefully, may take up to 11 minutes." msgid "Stop gracefully, may take up to 11 minutes."
msgstr "" msgstr ""
#: ../i2prouter:1688 #: ../i2prouter:1762
msgid " restart Stop if running and then start." msgid "Stop if running and then start."
msgstr "" msgstr ""
#: ../i2prouter:1689 #: ../i2prouter:1763
msgid " condrestart Restart only if already running." msgid "Restart only if already running."
msgstr "" msgstr ""
#: ../i2prouter:1691 #: ../i2prouter:1764
msgid " pause Pause if running." msgid "Query the current status."
msgstr "" msgstr ""
#: ../i2prouter:1692 #: ../i2prouter:1765
msgid " resume Resume if paused." msgid "Install to start automatically when system boots."
msgstr "" msgstr ""
#: ../i2prouter:1694 #: ../i2prouter:1766
msgid " status Query the current status." msgid "Uninstall."
msgstr "" msgstr ""
#: ../i2prouter:1695 #: ../i2prouter:1767
msgid " install Install to start automatically when system boots." msgid "Request a Java thread dump if running."
msgstr "" msgstr ""
#: ../i2prouter:1696 #: ../i2prouter:1780
msgid " remove Uninstall." msgid "Please edit $0 and set the variable RUN_AS_USER"
msgstr "" msgstr ""
#: ../i2prouter:1697 #: ../i2prouter:1785
msgid " dump Request a Java thread dump if running." msgid "Running I2P as the root user is *not* recommended."
msgstr "" msgstr ""
#: ../i2prouter:1701 #: ../i2prouter:1788
msgid "" msgid "To run as root anyway, edit $0 and set ALLOW_ROOT=true."
"JavaAppArgs: Zero or more arguments which will be passed to the Java "
"application."
msgstr "" msgstr ""