Browse Source

* update default init-script : make --port optional

pull/509/merge
hagen 9 years ago
parent
commit
ea8e1be294
  1. 1
      debian/i2pd.default
  2. 6
      debian/i2pd.init

1
debian/i2pd.default vendored

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
I2PD_ENABLED="yes"
# port to listen for incoming connections
# comment this line if you want to use value from config
I2PD_PORT="4567"
# Additional options that are passed to the Daemon.

6
debian/i2pd.init vendored

@ -41,6 +41,10 @@ do_start() @@ -41,6 +41,10 @@ do_start()
return 2
fi
if [ -n "$I2PD_PORT" ]; then
DAEMON_OPTS="--port $I2PD_PORT $DAEMON_OPTS"
fi
touch "$PIDFILE"
chown -f $USER:adm "$PIDFILE"
@ -51,7 +55,7 @@ do_start() @@ -51,7 +55,7 @@ do_start()
|| return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid "$USER" -- \
--service --daemon --log=file --logfile=$LOGFILE --conf=$I2PCONF --tunconf=$TUNCONF \
--port=$I2PD_PORT $DAEMON_OPTS > /dev/null 2>&1 \
$DAEMON_OPTS > /dev/null 2>&1 \
|| return 2
return $?
}

Loading…
Cancel
Save