mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
ffde46cbf9
base rcorder, hard coded variable values in these scripts are overriding the values in /etc/rc.conf[.local] (due to the way that variables from the latter are read at boot time). Therefore, change the boot scripts to set default values only if the variable is unset in /etc/rc.conf[.local]. This will allow the service to start at boot time if it's been enabled as the user would expect. This change will be a noop for users who have systems that have not yet been upgraded to the new rc.d code in the base. In many cases there are other variables in the scripts that should get similar treatment, however I did not change anything other than the _enable lines. I'll leave the rest up to the maintainers to do as they see fit. Bump PORTREVISION to make sure that users and packages pick up this change.
21 lines
376 B
Bash
21 lines
376 B
Bash
#!/bin/sh
|
|
# $FreeBSD$
|
|
#
|
|
# PROVIDE: bsnmpd
|
|
# REQUIRE: NETWORKING syslogd
|
|
# KEYWORD: nojail
|
|
|
|
bsnmpd_enable="${bsnmpd_enable-NO}"
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="bsnmpd"
|
|
rcvar=`set_rcvar`
|
|
required_files="%%PREFIX%%/etc/snmpd.config"
|
|
pidfile="/var/run/bsnmpd.pid"
|
|
command_args="-c ${required_files} -p ${pidfile}"
|
|
command="%%PREFIX%%/sbin/${name}"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|