aboutsummaryrefslogtreecommitdiff
path: root/net/netatalk3/files
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2015-10-04 01:23:32 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2015-10-04 01:23:32 +0000
commitcc013ca6a460326a97a98d9dd59d94bed4f6a4bb (patch)
treec35907f6e3ecb08d502d1f142b22aaf668c4ebd9 /net/netatalk3/files
parentf5836edd37b99010dc1bf226c2e0e519e27d7bf7 (diff)
downloadports-cc013ca6a460326a97a98d9dd59d94bed4f6a4bb.tar.gz
ports-cc013ca6a460326a97a98d9dd59d94bed4f6a4bb.zip
Notes
Diffstat (limited to 'net/netatalk3/files')
-rw-r--r--net/netatalk3/files/netatalk.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/net/netatalk3/files/netatalk.in b/net/netatalk3/files/netatalk.in
index 565478f03f10..92986887e83b 100644
--- a/net/netatalk3/files/netatalk.in
+++ b/net/netatalk3/files/netatalk.in
@@ -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"