#!/bin/sh # # $FreeBSD: head/security/greenbone-security-assistant8/files/gsad.in 447445 2017-08-06 06:49:42Z acm $ # # 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"} load_rc_config $name run_rc_command "$1"