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

Skip to content
Snippets Groups Projects
Commit 04621ff6 authored by hypercubus's avatar hypercubus Committed by zzz
Browse files

* service wrapper fully functioning under Linux and WinXP, should also be...

* 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
parent 50538080
No related branches found
No related tags found
No related merge requests found
Showing with 12 additions and 12 deletions
File moved
File moved
...@@ -17,7 +17,7 @@ APP_NAME="i2p" ...@@ -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() { ...@@ -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() { ...@@ -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
......
...@@ -20,7 +20,7 @@ rem Find the application home. ...@@ -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
......
...@@ -15,7 +15,7 @@ rem Find the application home. ...@@ -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
......
File moved
File moved
...@@ -15,7 +15,7 @@ rem Find the application home. ...@@ -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
......
...@@ -47,7 +47,7 @@ wrapper.java.library.path.2=lib ...@@ -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 ...@@ -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
......
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