1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-23 17:32:59 +01:00

Delete src/fastnetmon_rc_freebsd

Outdated, please use upstream one https://cgit.freebsd.org/ports/tree/net-mgmt/fastnetmon/files/fastnetmon.in
This commit is contained in:
Pavel Odintsov 2024-02-22 16:47:14 +00:00 committed by GitHub
parent fb476865e2
commit 2a31585098
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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"