1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

net-mgmt/zabbix2[24]-server: fix zabbix and database startup sequence

The Zabbix server and proxy ports require a database to run. They
currently support four, PostgreSQL, Oracle, SQLite, and MySQL. As
of now, rcorder puts them ahead of the database ports, so they spit
out dozens of error messages during startup and, worse, get the
database pulled out from under them during shutdown.

The ports used to provide a solution for this, by defining
ZABBIX_REQUIRE. The value of this variable used to be added to the
REQUIRE lines in the startup scripts, but this was removed accidentally
from 2.2 in r355546 and never existed in 2.4. This patch adds it
back, in a slightly different, optionsng-friendly way.

PR:		195081
Submitted by:	chris@chrullrich.net
Approved by:	pakhom706@gmail.com (maintainer)
This commit is contained in:
Kurt Jaeger 2014-12-27 14:52:35 +00:00
parent f1babf5cfa
commit 43739fccce
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375683
4 changed files with 12 additions and 4 deletions

View File

@ -1,7 +1,9 @@
#!/bin/sh
# PROVIDE: zabbix_proxy
# REQUIRE: DAEMON%%ZABBIX_REQUIRE%%
# REQUIRE: DAEMON
%%PGSQL%%# REQUIRE: postgresql
%%MYSQL%%# REQUIRE: mysql-server
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to

View File

@ -1,7 +1,9 @@
#!/bin/sh
# PROVIDE: zabbix_server
# REQUIRE: DAEMON%%ZABBIX_REQUIRE%%
# REQUIRE: DAEMON
%%PGSQL%%# REQUIRE: postgresql
%%MYSQL%%# REQUIRE: mysql-server
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to

View File

@ -1,7 +1,9 @@
#!/bin/sh
# PROVIDE: zabbix_proxy
# REQUIRE: DAEMON%%ZABBIX_REQUIRE%%
# REQUIRE: DAEMON
%%PGSQL%%# REQUIRE: postgresql
%%MYSQL%%# REQUIRE: mysql-server
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to

View File

@ -1,7 +1,9 @@
#!/bin/sh
# PROVIDE: zabbix_server
# REQUIRE: DAEMON%%ZABBIX_REQUIRE%%
# REQUIRE: DAEMON
%%PGSQL%%# REQUIRE: postgresql
%%MYSQL%%# REQUIRE: mysql-server
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to