svn commit: r398560 - in head/net/netatalk3: . files
Joe Marcus Clarke
marcus at FreeBSD.org
Sun Oct 4 01:23:34 UTC 2015
Author: marcus
Date: Sun Oct 4 01:23:32 2015
New Revision: 398560
URL: https://svnweb.freebsd.org/changeset/ports/398560
Log:
Allow reloading of the afpd config file via the RC script.
Reported by: Fusl <root at meo.ws>
Modified:
head/net/netatalk3/Makefile
head/net/netatalk3/files/netatalk.in
Modified: head/net/netatalk3/Makefile
==============================================================================
--- head/net/netatalk3/Makefile Sun Oct 4 00:42:55 2015 (r398559)
+++ head/net/netatalk3/Makefile Sun Oct 4 01:23:32 2015 (r398560)
@@ -3,7 +3,7 @@
PORTNAME= netatalk
PORTVERSION= 3.1.7
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= net
MASTER_SITES= SF
Modified: head/net/netatalk3/files/netatalk.in
==============================================================================
--- head/net/netatalk3/files/netatalk.in Sun Oct 4 00:42:55 2015 (r398559)
+++ head/net/netatalk3/files/netatalk.in Sun Oct 4 01:23:32 2015 (r398560)
@@ -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"
More information about the svn-ports-all
mailing list