aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/netams/files/netams.in
blob: fe4be1b9990cb307e6c99edb24d405c84668acbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: netams
# REQUIRE: NETWORKING
# KEYWORD: shutdown

# Define these netams_* variables in one of these files:
#       /etc/rc.conf
#       /etc/rc.conf.local
#       /etc/rc.conf.d/netams
#
# netams_enable (bool):         Set to "NO" by default.
#                               Set it to "YES" to enable netams.
# netams_config (str):          Custom configuration file to be passed
#                               to netams.
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#

. /etc/rc.subr

name="netams"
rcvar=`set_rcvar`

load_rc_config $name

: ${netams_enable="NO"}
: ${netams_config="%%PREFIX%%/etc/netams.conf"}

pidfile="/var/run/netams.pid"
command="%%PREFIX%%/libexec/netams"
command_args="-lf ${netams_config} > /dev/null &"

run_rc_command "$1"