Subject: pkg/18734: nessus package (1.2.6) does not have a startup script
To: None <gnats-bugs@gnats.netbsd.org>
From: None <adrianp@stindustries.net>
List: netbsd-bugs
Date: 10/19/2002 20:45:02
>Number: 18734
>Category: pkg
>Synopsis: nessus package (1.2.6) does not have a startup script
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Oct 19 20:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Adrian Portelli
>Release: NetBSD 1.6 i386
>Organization:
STIndustries
>Environment:
NetBSD jay.stindustries.net 1.6 NetBSD 1.6 (JAY) #2: Sat Oct 12 12:11:42 EST 2002 root@jay.stindustries.net:/usr/src/sys/arch/i386/compile/JAY i386
>Description:
The nessus package (1.2.6) does not have a startup script for the NetBSD 1.6 rc system.
>How-To-Repeat:
Install the nessus package (1.2.6) and no startup script is installed.
>Fix:
Attached is a script that will startup nessus 1.2.6 and uses the new rc system in NetBSD 1.6. It also may be a good idea to notify the users that this functionality is now available by a note in "MESSAGE" or something like that.
#!/bin/sh
#
# PROVIDE: nessusd
# REQUIRE: DAEMON
# To start nessusd at startup, copy this script to /etc/rc.d and set
# nessusd=YES and nessusd_flags="-D" in /etc/rc.conf.
. /etc/rc.subr
name="nessusd"
rcvar=$name
command="/usr/pkg/sbin/${name}"
setup_cmd="nessusd_setup"
extra_commands="status setup"
nessusd_setup()
{
echo "Dump of nessusd setup."
/usr/pkg/sbin/nessusd -d
}
load_rc_config $name
run_rc_command "$1"
>Release-Note:
>Audit-Trail:
>Unformatted: