diff options
Diffstat (limited to 'security/sancp/files/sancp.in')
-rw-r--r-- | security/sancp/files/sancp.in | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/security/sancp/files/sancp.in b/security/sancp/files/sancp.in deleted file mode 100644 index b731d95bd8cf..000000000000 --- a/security/sancp/files/sancp.in +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/sh - -# PROVIDE: sancp -# REQUIRE: DAEMON -# BEFORE: LOGIN -# KEYWORD: shutdown - -# Add the following lines to /etc/rc.conf to enable sancp: -# sancp_enable (bool): Set to YES to enable sancp -# Default: NO -# sancp_flags (str): Extra flags passed to sancp -# Default: -D -# sancp_conf (str): Sancp configuration file -# Default: %%PREFIX%%/etc/sancp.conf -# sancp_interface (str): Default: none - MUST BE SET -# - -. /etc/rc.subr - -name="sancp" -rcvar=sancp_enable - -command="%%PREFIX%%/bin/sancp" - -start_precmd=start_precmd - -start_precmd() -{ - if [ -z "${sancp_interface}" ]; then - err 1 "sancp_interface must set." - fi -} - -# set some defaults -load_rc_config $name - -: ${sancp_enable="NO"} -: ${sancp_flags="-D"} -: ${sancp_conf="%%PREFIX%%/etc/sancp.conf"} - -command_args="-c ${sancp_conf} -i ${sancp_interface}" - -run_rc_command "$1" |