mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
6c396df1e4
- Fix options - Add package creation - Use SF macro PR: ports/123492 Submitted by: Yarodin <yarodin@gmail.com> Reviewed by: Yuriy Shkandybin <jura@netams.com> (maintainer)
38 lines
788 B
Bash
38 lines
788 B
Bash
#!/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
|
|
#
|
|
|
|
. %%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"
|