Bug 252264

Summary: databases/mysqlwsrep57-server Make service_startup_timeout configurable
Product: Ports & Packages Reporter: daniele.sciascia
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Some People CC: devel
Priority: --- Keywords: buildisok
Version: LatestFlags: bugzilla: maintainer-feedback? (devel)
Hardware: Any   
OS: Any   
Attachments:
Description Flags
A patch to make service_startup_timeout configurable from rc.conf none

Description daniele.sciascia 2020-12-29 11:02:19 UTC
Created attachment 221084 [details]
A patch to make service_startup_timeout configurable from rc.conf

The port of mysqlwsrep57-server contains a hardcoded startup timeout value of 900 seconds. This timeout value should be configurable.
At least one use case has been identified here https://github.com/codership/mysql-wsrep/issues/380:

"In some scenarios it is desirable to set this value to 0 to make sure the script does not hold up system startup. This is particularly important when running in a FreeBSD jail(8) along with other jails that are started sequentially. Jail startup is not considered complete until rc(8) finishes, holding up the starting of other jails on the same system. Specifically, if all nodes in a Galera cluster are running in jails on the same system, the cluster may never recover after a restart if the first instance to start up requires SST."

A patch has been devised and is attached to this ticket.
Comment 1 Automation User 2021-01-13 00:24:20 UTC
Build and package info is available at https://gitlab.com/swills/freebsd-ports/pipelines/240794955
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-01-17 18:52:27 UTC
A commit references this bug:

Author: swills
Date: Sun Jan 17 18:52:07 UTC 2021
New revision: 561860
URL: https://svnweb.freebsd.org/changeset/ports/561860

Log:
  databases/mysqlwsrep57-server Make service_startup_timeout configurable

  PR:		252264
  Submitted by:	daniele.sciascia@galeracluster.com
  Approved by:	maintainer timeout (devel@galeracluster.com, >2 weeks)

Changes:
  head/databases/mysqlwsrep57-server/Makefile
  head/databases/mysqlwsrep57-server/files/mysql-server.in
Comment 3 Steve Wills freebsd_committer freebsd_triage 2021-01-17 18:53:21 UTC
Committed, thanks!