Bug 278629 - net-mgmt/zabbix64-server: missing REQUIRE mysql in rc.d/zabbix_server with MariaDB
Summary: net-mgmt/zabbix64-server: missing REQUIRE mysql in rc.d/zabbix_server with Ma...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Juraj Lutter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-28 07:13 UTC by allg
Modified: 2024-04-29 14:26 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (otis)


Attachments
Patch for zabbix_server.in (530 bytes, patch)
2024-04-28 07:13 UTC, allg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description allg 2024-04-28 07:13:21 UTC
Created attachment 250278 [details]
Patch for zabbix_server.in

When using zabbix64-server with MariaDB, rc.d/zabbix_server does not contain "REQUIRE: mysql".
Therefore, when shutting down the host, mysql stops before zabbix_server and prevents zabbix_server from stopping.
Comment 1 commit-hook freebsd_committer freebsd_triage 2024-04-29 14:04:11 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9d83b1839c8ffae135c4094e3a49a26cd133c874

commit 9d83b1839c8ffae135c4094e3a49a26cd133c874
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2024-04-29 13:55:53 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2024-04-29 14:03:37 +0000

    net-mgmt/zabbix64-server: Make service depend on mysql service

    When using zabbix64-server with MariaDB, rc.d/zabbix_server does not
    contain "REQUIRE: mysql".  Therefore, when shutting down the host, mysql
    stops before zabbix_server and prevents zabbix_server from stopping.

    Fix this also for MYSQLDV option and also for zabbix64-proxy in
    addition to zabbix64-server.

    PR:             278629

 net-mgmt/zabbix64-server/Makefile               | 2 +-
 net-mgmt/zabbix64-server/files/zabbix_proxy.in  | 3 +++
 net-mgmt/zabbix64-server/files/zabbix_server.in | 3 +++
 3 files changed, 7 insertions(+), 1 deletion(-)
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-04-29 14:04:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=df6ff2da571f4661591a83ba364c0d94bd3146af

commit df6ff2da571f4661591a83ba364c0d94bd3146af
Author:     Juraj Lutter <otis@FreeBSD.org>
AuthorDate: 2024-04-29 14:00:21 +0000
Commit:     Juraj Lutter <otis@FreeBSD.org>
CommitDate: 2024-04-29 14:03:37 +0000

    net-mgmt/zabbix6-server: Make service depend on mysql service

    When using zabbix6-server with MariaDB, rc.d/zabbix_server does not
    contain "REQUIRE: mysql".  Therefore, when shutting down the host, mysql
    stops before zabbix_server and prevents zabbix_server from stopping.

    Fix this also for MYSQLDV option and also for zabbix6-proxy in
    addition to zabbix6-server.

    PR:             278629

 net-mgmt/zabbix6-server/files/zabbix_proxy.in  | 3 +++
 net-mgmt/zabbix6-server/files/zabbix_server.in | 3 +++
 2 files changed, 6 insertions(+)
Comment 3 Juraj Lutter freebsd_committer freebsd_triage 2024-04-29 14:26:58 UTC
Committed, thanks.