diff --git a/src/fastnetmon_rc_freebsd b/src/fastnetmon_rc_freebsd deleted file mode 100644 index fd40467..0000000 --- a/src/fastnetmon_rc_freebsd +++ /dev/null @@ -1,36 +0,0 @@ -#!/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" -rcvar="${name}_enable" - -command="/usr/local/bin/fastnetmon" -start_precmd="start_precmd" -pidfile="/var/run/$name.pid" - -# read configuration and set defaults -load_rc_config "$name" -: ${fastnetmon_enable="NO"} -: ${fastnetmon_user="fastnetmon"} -#: ${fastnetmon_config="/usr/local/etc/$name.conf"} - -start_precmd() -{ - echo -n "Starting fastnetmon deamon:" && \ - su -m $fastnetmon_user -c "$command"; && \ - echo . - return 0 -} - -run_rc_command "$1"