Bug 250012

Summary: databases/postgresql-repmgr: fails to start if pid file does not exist
Product: Ports & Packages Reporter: Ole <ole>
Component: Individual Port(s)Assignee: Muhammad Moinur Rahman <bofh>
Status: Closed FIXED    
Severity: Affects Only Me Flags: bugzilla: maintainer-feedback? (bofh)
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Ole 2020-09-30 19:19:16 UTC
If the pid file does not exist the repmgrd fails to start.
I modified the rc script to fix the problem:

(...)
: ${repmgrd_enable:="NO"}
: ${repmgrd_user:="pgsql"}
: ${repmgrd_config="/usr/local/etc/repmgr.conf"}

command=/usr/local/bin/${name}
pidfile=/var/run/${name}.pid

touch $pidfile
chown $repmgrd_user $pidfile

command_args="-m -d -p $pidfile -f $repmgrd_config"
(...)
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-10-24 23:52:42 UTC
A commit references this bug:

Author: bofh
Date: Sat Oct 24 23:52:39 UTC 2020
New revision: 553232
URL: https://svnweb.freebsd.org/changeset/ports/553232

Log:
  databases/postgresql-repmgr: Update version 5.1.0=>5.2.0

  - Fix service start if pid file doesn't exist [1]

  PR:		250012 [1]
  Submitted by:	ole@free.de [1]
  Relnotes:	https://repmgr.org/docs/current/release-5.2.0.html

Changes:
  head/databases/postgresql-repmgr/Makefile
  head/databases/postgresql-repmgr/distinfo
  head/databases/postgresql-repmgr/files/repmgrd.in
  head/databases/postgresql-repmgr/pkg-plist