1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/security/greenbone-security-assistant9/files/gsad.in
Jose Alonso Cardenas Marquez ec093cec9b - Fix rc scripts of OpenVAS 9 ports
- Change some entries of openvas8/files/pkg-message
- Change some entries of openvas9/files/pkg-message. It reflects socket use of
  OpenVAS 9 ports.
- Fix problems into OpenVAS 9 greenbone*-sync scripts
- Add missing dependency (ftp/wget)
- Fix socket connection from openvas9-manager to openvas9-scanner
- Bump PORTREVISION
2017-08-07 03:48:23 +00:00

28 lines
573 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: gsad
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# gsad_enable (bool): Set to NO by default.
# Set it to YES to enable gsad.
# gsad_flags (params): Set params used to start gsad.
#
. /etc/rc.subr
name=gsad
rcvar=${name}_enable
command="%%PREFIX%%/sbin/gsad"
pidfile=/var/run/gsad.pid
: ${gsad_enable="NO"}
: ${gsad_flags="--listen=127.0.0.1 --port=8080 --http-only --munix-socket=/var/run/openvasmd.sock"}
load_rc_config $name
run_rc_command "$1"