diff options
Diffstat (limited to 'net-mgmt/fastnetmon/files/fastnetmon.in')
-rw-r--r-- | net-mgmt/fastnetmon/files/fastnetmon.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/net-mgmt/fastnetmon/files/fastnetmon.in b/net-mgmt/fastnetmon/files/fastnetmon.in new file mode 100644 index 000000000000..52f1236bfbd6 --- /dev/null +++ b/net-mgmt/fastnetmon/files/fastnetmon.in @@ -0,0 +1,28 @@ +#!/bin/sh + +# PROVIDE: fastnetmon +# REQUIRE: NETWORKING SERVERS LOGIN +# BEFORE: securelevel +# KEYWORD: shutdown + +# Add the following line to /etc/rc.conf to enable 'fastnetmon': +# +# fastnetmon_enable="YES" +# + +. /etc/rc.subr + +name=fastnetmon +desc="fastnetmon startup script" +rcvar=fastnetmon_enable + +load_rc_config "$name" + +: ${fastnetmon_enable:=NO} +: ${fastnetmon_user:=fastnetmon} +: ${fastnetmon_flags:=--daemonize} + +command=%%PREFIX%%/bin/fastnetmon +pidfile=/var/run/fastnetmon/$name.pid + +run_rc_command "$1" |