diff options
Diffstat (limited to 'net-misc/i2pd/files/i2pd.initd')
-rw-r--r-- | net-misc/i2pd/files/i2pd.initd | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/net-misc/i2pd/files/i2pd.initd b/net-misc/i2pd/files/i2pd.initd new file mode 100644 index 0000000..f9e2839 --- /dev/null +++ b/net-misc/i2pd/files/i2pd.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +description="C++ daemon for accessing the I2P network" + +command="/usr/bin/i2pd" +command_args="${I2PDOPTIONS}" +pidfile="${I2PD_PID}" + +depend() { + use dns logger netmount +} + +start_pre() { + touch "${I2PD_LOG}" "${I2PD_PID}" + chown "${I2PD_USER}:${I2PD_GROUP}" "${I2PD_LOG}" "${I2PD_PID}" +} + + +stop_post() { + rm -f "${I2PD_PID}" +} |