ports/net/nncp/files/nncp-caller.in
Yuri Victorovich 04c43d10af New port: net/nncp: Utilities for secure store-and-forward files and mail exchanging
More information is here: http://www.nncpgo.org/

PR:		215973
Submitted by:	Sergey Matveev <stargrave@stargrave.org>
Approved by:	tcberner (mentor), mat
Differential Revision:	https://reviews.freebsd.org/D13700
2018-01-29 16:17:45 +00:00

29 lines
631 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: nncp-caller
# REQUIRE: DAEMON NETWORKING FILESYSTEMS
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# nncp_caller_enable (bool): Set to NO by default.
# Set it to YES to enable nncp-caller.
# nncp_caller_config (path): Set to %%PREFIX%%/etc/nncp.yaml by default.
. /etc/rc.subr
name=nncp_caller
rcvar=nncp_caller_enable
load_rc_config $name
: ${nncp_caller_enable:="NO"}
: ${nncp_caller_config="%%PREFIX%%/etc/nncp.yaml"}
command=%%PREFIX%%/bin/nncp-caller
command_args="-quiet -cfg $nncp_caller_config &"
run_rc_command "$1"