diff options
author | pav <pav@FreeBSD.org> | 2004-05-03 02:09:24 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-03 02:09:24 +0800 |
commit | 6686857ac4eff4a2da2b683e56dd793620af91c8 (patch) | |
tree | df27975daca3544b84d8776b98f53da3f5da3ee1 /security/nessus/files | |
parent | 2a36fd433f125afca39dc76df652f463b099471b (diff) | |
download | freebsd-ports-gnome-6686857ac4eff4a2da2b683e56dd793620af91c8.tar.gz freebsd-ports-gnome-6686857ac4eff4a2da2b683e56dd793620af91c8.tar.zst freebsd-ports-gnome-6686857ac4eff4a2da2b683e56dd793620af91c8.zip |
- Add sample rc script
PR: ports/66052
Submitted by: Udo Schweigert <udo.schweigert@siemens.com> (maintainer)
Diffstat (limited to 'security/nessus/files')
-rw-r--r-- | security/nessus/files/nessusd.sh | 28 |
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 |