summaryrefslogtreecommitdiff
path: root/net/argus/files
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-07-07 17:22:30 +0000
committerxtraeme <xtraeme>2004-07-07 17:22:30 +0000
commitab62da2d25ade33185d66bc11e260746a368d357 (patch)
tree81a757d879f13f582eec545528fdba70a75d4987 /net/argus/files
parent00794f1c326a043e0e10bf198d5b8c28773767da (diff)
downloadpkgsrc-ab62da2d25ade33185d66bc11e260746a368d357.tar.gz
Initial import of argus-3.3 from pkgsrc-wip, contributed by
<drue at users.sourceforge.net>. Argus is a system and network monitoring application. It will monitor anything you ask it to monitor (TCP + UDP applications, IP connectivity, SNMP OIDS, Programs, Databases, etc), presents a nice clean, easy to view web interface, it can send alerts numerous ways (such as via pager) and can automatically escalate if someone falls asleep.
Diffstat (limited to 'net/argus/files')
-rw-r--r--net/argus/files/argusd.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/net/argus/files/argusd.sh b/net/argus/files/argusd.sh
new file mode 100644
index 00000000000..a99f70d2ef5
--- /dev/null
+++ b/net/argus/files/argusd.sh
@@ -0,0 +1,25 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: argusd.sh,v 1.1.1.1 2004/07/07 17:22:30 xtraeme Exp $
+#
+
+# PROVIDE: argusd
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="argusd"
+rcvar=$name
+command="@PREFIX@/sbin/argusd"
+ctl_command="@PREFIX@/sbin/argusctl"
+start_cmd="${command}"
+stop_cmd="${ctl_command} shutdown reason=\"argusd stop\""
+
+if [ -f /etc/rc.subr -a -f /etc/rc.conf -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]
+then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ [ "$1" eq "start" ] && $start_cmd
+ [ "$1" eq "stop" ] && $stop_cmd
+fi