* service wrapper fully functioning under Linux and WinXP, should also be working for the other *nix platforms but this isn't tested yet

* renaming wrapper binaries to 'i2psvc' for *nix and 'I2Psvc.exe' for win32
This commit is contained in:
hypercubus
2004-08-19 05:41:36 +00:00
committed by zzz
parent 5053808058
commit 04621ff64a
14 changed files with 12 additions and 12 deletions

View File

@ -17,7 +17,7 @@ APP_NAME="i2p"
APP_LONG_NAME="I2P Service" APP_LONG_NAME="I2P Service"
# Wrapper # Wrapper
WRAPPER_CMD="wrapper" WRAPPER_CMD="i2psvc"
WRAPPER_CONF="wrapper.conf" WRAPPER_CONF="wrapper.conf"
# Priority at which to run the wrapper. See "man nice" for valid priorities. # Priority at which to run the wrapper. See "man nice" for valid priorities.
@ -157,9 +157,9 @@ console() {
then then
if [ "X$IGNORE_SIGNALS" = "X" ] if [ "X$IGNORE_SIGNALS" = "X" ]
then then
exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF i2psvc.pidfile=$PIDFILE
else else
exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF i2psvc.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE
fi fi
else else
echo "$APP_LONG_NAME is already running." echo "$APP_LONG_NAME is already running."
@ -176,16 +176,16 @@ start() {
then then
if [ "X$RUN_AS_USER" = "X" ] if [ "X$RUN_AS_USER" = "X" ]
then then
exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF i2psvc.pidfile=$PIDFILE wrapper.daemonize=TRUE
else else
su -m $RUN_AS_USER -c "exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.daemonize=TRUE" su -m $RUN_AS_USER -c "exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF i2psvc.pidfile=$PIDFILE wrapper.daemonize=TRUE"
fi fi
else else
if [ "X$RUN_AS_USER" = "X" ] if [ "X$RUN_AS_USER" = "X" ]
then then
exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE wrapper.ignore_signals=TRUE wrapper.daemonize=TRUE exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF i2psvc.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE wrapper.ignore_signals=TRUE wrapper.daemonize=TRUE
else else
su -m $RUN_AS_USER -c "exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF wrapper.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE wrapper.ignore_signals=TRUE wrapper.daemonize=TRUE" su -m $RUN_AS_USER -c "exec $CMDNICE $WRAPPER_CMD $WRAPPER_CONF i2psvc.pidfile=$PIDFILE wrapper.anchorfile=$ANCHORFILE wrapper.ignore_signals=TRUE wrapper.daemonize=TRUE"
fi fi
fi fi
else else

View File

@ -20,7 +20,7 @@ rem Find the application home.
rem rem
rem %~dp0 is location of current script under NT rem %~dp0 is location of current script under NT
set _REALPATH=%~dp0 set _REALPATH=%~dp0
set _WRAPPER_EXE=%_REALPATH%Wrapper.exe set _WRAPPER_EXE=%_REALPATH%I2Psvc.exe
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf

View File

@ -15,7 +15,7 @@ rem Find the application home.
rem rem
rem %~dp0 is location of current script under NT rem %~dp0 is location of current script under NT
set _REALPATH=%~dp0 set _REALPATH=%~dp0
set _WRAPPER_EXE=%_REALPATH%Wrapper.exe set _WRAPPER_EXE=%_REALPATH%I2Psvc.exe
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf

View File

@ -15,7 +15,7 @@ rem Find the application home.
rem rem
rem %~dp0 is location of current script under NT rem %~dp0 is location of current script under NT
set _REALPATH=%~dp0 set _REALPATH=%~dp0
set _WRAPPER_EXE=%_REALPATH%Wrapper.exe set _WRAPPER_EXE=%_REALPATH%I2Psvc.exe
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf

View File

@ -47,7 +47,7 @@ wrapper.java.library.path.2=lib
# Application parameters. Add parameters as needed starting from 1 # Application parameters. Add parameters as needed starting from 1
wrapper.app.parameter.1=net.i2p.router.Router wrapper.app.parameter.1=net.i2p.router.Router
wrapper.app.parameter.2=--quiet wrapper.app.parameter.2=--quiet
wrapper.app.parameter.3=> /dev/null & wrapper.app.parameter.3=> /dev/null
#******************************************************************** #********************************************************************
# Wrapper Logging Properties # Wrapper Logging Properties
@ -59,7 +59,7 @@ wrapper.console.format=PM
wrapper.console.loglevel=INFO wrapper.console.loglevel=INFO
# Log file to use for wrapper output logging. # Log file to use for wrapper output logging.
wrapper.logfile=../logs/wrapper.log wrapper.logfile=logs/wrapper.log
# Format of output for the log file. (See docs for formats) # Format of output for the log file. (See docs for formats)
wrapper.logfile.format=LPTM wrapper.logfile.format=LPTM