mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-11-23 09:12:14 +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:
parent
fb476865e2
commit
2a31585098
@ -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"
|
Loading…
Reference in New Issue
Block a user