diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2015-10-04 01:23:32 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2015-10-04 01:23:32 +0000 |
commit | cc013ca6a460326a97a98d9dd59d94bed4f6a4bb (patch) | |
tree | c35907f6e3ecb08d502d1f142b22aaf668c4ebd9 /net/netatalk3/files | |
parent | f5836edd37b99010dc1bf226c2e0e519e27d7bf7 (diff) | |
download | ports-cc013ca6a460326a97a98d9dd59d94bed4f6a4bb.tar.gz ports-cc013ca6a460326a97a98d9dd59d94bed4f6a4bb.zip |
Notes
Diffstat (limited to 'net/netatalk3/files')
-rw-r--r-- | net/netatalk3/files/netatalk.in | 15 |
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" |