mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
net-vpn/i2pd: remove unused files
Signed-off-by: Michael Mair-Keimberger <mm1ke@gentoo.org>
This commit is contained in:
parent
fc97b39381
commit
60c47b58d8
@ -1,52 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="C++ daemon for accessing the I2P network"
|
||||
description_graceful="Graceful shutdown, takes 10 minutes"
|
||||
|
||||
command="/usr/bin/i2pd"
|
||||
command_args="${I2PD_OPTIONS}"
|
||||
user="${I2PD_USER}:${I2PD_GROUP}"
|
||||
start_stop_daemon_args="
|
||||
--user \"${user}\"
|
||||
--pidfile \"${I2PD_PID}\"
|
||||
--progress
|
||||
"
|
||||
retry="SIGTERM/20/SIGKILL/20"
|
||||
|
||||
I2PD_PID_DIR=$(dirname "${I2PD_PID}")
|
||||
|
||||
extra_started_commands="graceful"
|
||||
|
||||
depend() {
|
||||
use dns logger netmount
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
if [ -z "${I2PD_USER}" ] || \
|
||||
[ -z "${I2PD_GROUP}" ] || \
|
||||
[ -z "${I2PD_PID}" ] || \
|
||||
[ -z "${I2PD_LOG}" ] || \
|
||||
[ -z "${I2PD_OPTIONS}" ] ; then
|
||||
eerror "Not all variables I2PD_USER, I2PD_GROUP, I2PD_PID, I2PD_OPTIONS, I2PD_LOG are defined."
|
||||
eerror "Check your /etc/conf.d/i2pd."
|
||||
return 1
|
||||
fi
|
||||
checkpath -f -o "${user}" "${I2PD_LOG}"
|
||||
checkpath -d -m 0750 -o "${user}" "${I2PD_PID_DIR}"
|
||||
}
|
||||
|
||||
stop_post() {
|
||||
# #808845
|
||||
rm -f "${I2PD_PID}"
|
||||
}
|
||||
|
||||
graceful() {
|
||||
# on SIGINT, i2pd stops accepting tunnels and shuts down in 600 seconds
|
||||
ebegin "Gracefully stopping i2pd, this takes 10 minutes"
|
||||
mark_service_stopping
|
||||
eval start-stop-daemon --stop ${start_stop_daemon_args} \
|
||||
--exec "${command}" --retry 'SIGINT/620/SIGTERM/20/SIGKILL/20'
|
||||
eend $? && mark_service_stopped
|
||||
}
|
||||
@ -1,12 +0,0 @@
|
||||
I2PD_USER=i2pd
|
||||
I2PD_GROUP=i2pd
|
||||
I2PD_LOG=/var/log/i2pd.log
|
||||
I2PD_PID=/run/i2pd/i2pd.pid
|
||||
|
||||
# max number of open files (for floodfill)
|
||||
rc_ulimit="-n 4096"
|
||||
|
||||
# Options to i2pd
|
||||
I2PD_OPTIONS="--daemon --service --pidfile=${I2PD_PID} \
|
||||
--log=file --logfile=${I2PD_LOG} \
|
||||
--conf=/etc/i2pd/i2pd.conf --tunconf=/etc/i2pd/tunnels.conf"
|
||||
Loading…
x
Reference in New Issue
Block a user