mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
update debian packaging files
Signed-off-by: R4SAS <r4sas@i2pmail.org>
This commit is contained in:
parent
ac594dbd26
commit
a6be32392d
11 changed files with 18 additions and 74 deletions
39
contrib/openrc/i2pd.openrc
Normal file
39
contrib/openrc/i2pd.openrc
Normal file
|
@ -0,0 +1,39 @@
|
|||
#!/sbin/openrc-run
|
||||
|
||||
pidfile="/var/run/i2pd/i2pd.pid"
|
||||
logfile="/var/log/i2pd/i2pd.log"
|
||||
mainconf="/etc/i2pd/i2pd.conf"
|
||||
tunconf="/etc/i2pd/tunnels.conf"
|
||||
tundir="/etc/i2pd/tunnels.conf.d"
|
||||
|
||||
name="i2pd"
|
||||
command="/usr/sbin/i2pd"
|
||||
command_args="--service --daemon --log=file --logfile=$logfile --conf=$mainconf --tunconf=$tunconf --tunnelsdir=$tundir --pidfile=$pidfile"
|
||||
description="i2p router written in C++"
|
||||
required_dirs="/var/lib/i2pd"
|
||||
required_files="$mainconf"
|
||||
start_stop_daemon_args="--chuid i2pd"
|
||||
|
||||
depend() {
|
||||
need mountall
|
||||
use net
|
||||
after bootmisc
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
if [ -r /etc/default/i2pd ]; then
|
||||
. /etc/default/i2pd
|
||||
fi
|
||||
|
||||
if [ "x$I2PD_ENABLED" != "xyes" ]; then
|
||||
ewarn "i2pd disabled in /etc/default/i2pd"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
checkpath -f -o i2pd:adm $logfile
|
||||
checkpath -f -o i2pd:adm $pidfile
|
||||
|
||||
if [ -n "$DAEMON_OPTS" ]; then
|
||||
command_args="$command_args $DAEMON_OPTS"
|
||||
fi
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue