aboutsummaryrefslogtreecommitdiff
path: root/security/nessus/files/nessusd.sh
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-05-02 18:09:24 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-05-02 18:09:24 +0000
commit5a5e873d1879867e1636277401954ff79db1fca0 (patch)
treec82829908c7aa56674b4ebacbe6c8ac04684b749 /security/nessus/files/nessusd.sh
parentda2eac75c62b053f9b7020b5640bb9457da91bca (diff)
downloadports-5a5e873d1879867e1636277401954ff79db1fca0.tar.gz
ports-5a5e873d1879867e1636277401954ff79db1fca0.zip
- Add sample rc script
PR: ports/66052 Submitted by: Udo Schweigert <udo.schweigert@siemens.com> (maintainer)
Notes
Notes: svn path=/head/; revision=108178
Diffstat (limited to 'security/nessus/files/nessusd.sh')
-rw-r--r--security/nessus/files/nessusd.sh28
1 files changed, 28 insertions, 0 deletions
diff --git a/security/nessus/files/nessusd.sh b/security/nessus/files/nessusd.sh
new file mode 100644
index 000000000000..6fe58eadd1f0
--- /dev/null
+++ b/security/nessus/files/nessusd.sh
@@ -0,0 +1,28 @@
+#! /bin/sh
+#
+# $FreeBSD$
+#
+
+umask 022
+arg=${1:-start}
+
+nessusd_bin=%%PREFIX%%/sbin/nessusd
+nessus_arg="-D"
+kill_arg=nessusd
+
+echo -n " nessusd"
+
+case $arg in
+start)
+ test -x $nessusd_bin || exit 1
+ $nessusd_bin $nessus_arg
+ ;;
+stop)
+ killall $kill_arg > /dev/null 2>&1
+ ;;
+restart)
+ killall $kill_arg > /dev/null 2>&1
+ test -x $nessusd_bin || exit 1
+ $nessusd_bin $nessus_arg
+ ;;
+esac