Patrick,

Here's the startup script that I've been using. I grabbed it out of a nessus 1.x rpm 
file and
tweaked it a bit. Works fine with nessus 2.0.3. Just copy it into the file
"/etc/rc.d/init.d/nessusd" and run "chkconfig --add nessusd"

Make sure the paths match your build, however, as I am running Mandrake 9.1, not 
Redhat 7.


*********************************************

#!/bin/sh
#
# Startup script for Nessus
#
# chkconfig: 345 85 15
# description: Nessus is a security auditing tool
# processname: nessusd
# config: /usr/local/etc/nessus/nessusd.conf


# Source function library.
. /etc/rc.d/init.d/functions

# -a 127.0.0.1 : restricted to localhost, add it for restricted access
#OPTIONS="-a 127.0.0.1"
OPTIONS=""

# See how we were called.
case "$1" in
  start)
        gprintf "Starting nessusd: "
        if [ -f /var/lock/subsys/nessusd ] ; then
                echo
                exit 1
        fi

        daemon /usr/local/sbin/nessusd $OPTIONS -D
        echo
        touch /var/lock/subsys/nessusd
        ;;
  stop)
        gprintf "Shutting down nessusd: "
        killproc nessusd
        echo
        rm -f /var/lock/subsys/nessusd
        ;;
  status)
        status nessusd
        ;;
  reload|restart)
        $0 stop
        $0 start
        ;;
  *)
        gprintf "Usage: %s {start|stop|restart|reload|status}\n" "$0"
        exit 1
esac

exit 0

*********************************************

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Patrick Topping
Sent: Friday, June 20, 2003 10:31 AM
To: [EMAIL PROTECTED]
Subject: Startup script


I have been looking for a nessus startup script for Redhat 7.3.  Does
anyone have one that they have already written or stolen from some where
esle??  Thanks.

-Patrick




Reply via email to