1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Allow reloading of the afpd config file via the RC script.

Reported by:	Fusl <root@meo.ws>
This commit is contained in:
Joe Marcus Clarke 2015-10-04 01:23:32 +00:00
parent f5836edd37
commit cc013ca6a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=398560
2 changed files with 16 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= netatalk
PORTVERSION= 3.1.7
PORTREVISION= 2
PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= net
MASTER_SITES= SF

View File

@ -23,4 +23,19 @@ load_rc_config ${name}
command=%%PREFIX%%/sbin/${name}
extra_commands="reload"
reload_cmd="netatalk_reload"
netatalk_reload()
{
local status
if ! status=`run_rc_command status 2>&1`; then
echo $status
return 1
fi
echo 'Reloading netatalk.'
kill -HUP $rc_pid
}
run_rc_command "$1"