blob: e9120c18df0b0f3992283ef97eec57870ee2eced (
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
|
#! /bin/sh -
# $FreeBSD$
#
# PROVIDE: mysql-snmp
# REQUIRE: DAEMON mysql
# KEYWORD: shutdown
#
# Add these lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# mysql_snmp_enable (bool): Set to NO by default.
# Set it to YES to enable mysql_snmp.
# mysql_snmp_config (path): Set to %%ETCDIR%%/my.cnf
# by default.
. /etc/rc.subr
name="mysql_snmp"
rcvar="mysql_snmp_enable"
load_rc_config "$name"
: ${mysql_snmp_enable:="NO"}
: ${mysql_snmp_config="%%ETCDIR%%/my.cnf"}
command_interpreter="%%PERL%%"
command="%%PREFIX%%/sbin/mysql-snmp"
pidfile="/var/run/mysql-snmp.pid"
command_args="--config $mysql_snmp_config"
run_rc_command "$1"
|