- Add support for reload command for rc.d script

Submitted by:	Eugene Grosbein
This commit is contained in:
Dmitry Marakasov 2020-07-03 13:41:17 +00:00
parent 82e872f731
commit cc9b16b63c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=541111
2 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= i2pd
PORTVERSION= 2.32.1
PORTREVISION= 1
CATEGORIES= security net-p2p
MAINTAINER= amdmi3@FreeBSD.org

View File

@ -28,5 +28,7 @@ required_dirs=${i2pd_datadir}
pidfile=${i2pd_pidfile}
command="%%PREFIX%%/bin/${name}"
command_args="--pidfile ${i2pd_pidfile} --service --datadir ${i2pd_datadir} --log file --logfile ${i2pd_logfile} --daemon"
extra_commands="reload"
reload_cmd="pkill -1 -F ${i2pd_pidfile} -x i2pd"
run_rc_command "$1"