* update debian/

This commit is contained in:
hagen 2016-01-20 00:00:00 +00:00
parent 1f6f4d9c49
commit 8aa158c1e0
4 changed files with 21 additions and 16 deletions

23
debian/i2pd.conf vendored
View File

@ -1,16 +1,19 @@
floodfill=0 ipv6
v6=0
httpproxyaddress=127.0.0.1 [httpproxy]
httpproxyport=4444 address = 127.0.0.1
port = 4444
# other services (disabled by default) # other services (disabled by default)
# #
# samaddress=127.0.0.1 #[sam]
# samport=7656 #address = 127.0.0.1
#port = 7656
# #
# bobaddress=127.0.0.1 #[bob]
# bobport=2827 #address = 127.0.0.1
#port = 2827
# #
# i2pcontroladdress=127.0.0.1 #[i2pcontrol]
# i2pcontrolport=7650 #address = 127.0.0.1
#port = 7650

2
debian/i2pd.init vendored
View File

@ -46,7 +46,7 @@ do_start()
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid "$USER" --test > /dev/null \ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid "$USER" --test > /dev/null \
|| return 1 || return 1
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid "$USER" -- \ start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid "$USER" -- \
--service=1 --daemon=1 --log=1 --conf=$I2PCONF --tunnelscfg=$TUNCONF \ --service --daemon --log --conf=$I2PCONF --tunconf=$TUNCONF \
--port=$I2PD_PORT $DAEMON_OPTS > /dev/null 2>&1 \ --port=$I2PD_PORT $DAEMON_OPTS > /dev/null 2>&1 \
|| return 2 || return 2
return $? return $?

6
debian/i2pd.upstart vendored
View File

@ -4,7 +4,7 @@ start on runlevel [2345]
stop on runlevel [016] or unmounting-filesystem stop on runlevel [016] or unmounting-filesystem
# these can be overridden in /etc/init/i2pd.override # these can be overridden in /etc/init/i2pd.override
env I2P_HOST="1.2.3.4" env I2PD_HOST="1.2.3.4"
env I2P_PORT="4567" env I2PD_PORT="4567"
exec /usr/sbin/i2pd --daemon=0 --log=1 --host=$I2P_HOST --port=$I2P_PORT exec /usr/sbin/i2pd --daemon --log --host=$I2PD_HOST --port=$I2PD_PORT

6
debian/postinst vendored
View File

@ -1,6 +1,7 @@
#!/bin/sh #!/bin/sh
set -e set -e
LOGFILE='/var/log/i2pd.log'
I2PDHOME='/var/lib/i2pd' I2PDHOME='/var/lib/i2pd'
I2PDUSER='i2pd' I2PDUSER='i2pd'
@ -16,8 +17,9 @@ case "$1" in
adduser --system --quiet --group --home $I2PDHOME $I2PDUSER adduser --system --quiet --group --home $I2PDHOME $I2PDUSER
fi fi
touch /var/log/i2pd.log touch $LOGFILE
chown -f ${I2PDUSER}:adm /var/log/i2pd.log chmod 640 $LOGFILE
chown -f ${I2PDUSER}:adm $LOGFILE
mkdir -p -m0750 $I2PDHOME mkdir -p -m0750 $I2PDHOME
chown -f -R -P ${I2PDUSER}:${I2PDUSER} ${I2PDHOME} chown -f -R -P ${I2PDUSER}:${I2PDUSER} ${I2PDHOME}
;; ;;