Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Oct 2015 01:23:33 +0000 (UTC)
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r398560 - in head/net/netatalk3: . files
Message-ID:  <201510040123.t941NXlP020713@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510040123.t941NXlP020713>