freebsd-ports/security/nessus/files/nessusd.in
Doug Barton 9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00

39 lines
852 B
Bash

#!/bin/sh
# Start or stop nessusd
# $FreeBSD$
# PROVIDE: nessusd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
# Define these nessusd_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/nessusd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
[ -z "$nessusd_enable" ] && nessusd_enable="NO" # Disable nessusd
#nessusd_program="%%PREFIX%%/sbin/nessusd" # Location of nessusd
nessusd_flags="-D" # Flags to nessusd program
. /etc/rc.subr
name="nessusd"
rcvar=nessusd_enable
command="%%PREFIX%%/sbin/nessusd"
pidfile="%%PREFIX%%/var/nessus/nessusd.pid"
required_files="%%PREFIX%%/etc/nessus/nessusd.conf"
start_precmd="nessus_check_certificate"
nessus_check_certificate()
{
if [ ! -f %%PREFIX%%/var/CA/serverkey.pem ]; then
%%PREFIX%%/sbin/nessus-mkcert
fi
}
load_rc_config $name
run_rc_command "$1"