Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Sep 2020 19:19:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 250012] databases/postgresql-repmgr: fails to start if pid file does not exist
Message-ID:  <bug-250012-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D250012

            Bug ID: 250012
           Summary: databases/postgresql-repmgr: fails to start if pid
                    file does not exist
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: bofh@freebsd.org
          Reporter: ole@free.de
             Flags: maintainer-feedback?(bofh@freebsd.org)
          Assignee: bofh@freebsd.org

If the pid file does not exist the repmgrd fails to start.
I modified the rc script to fix the problem:

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

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

touch $pidfile
chown $repmgrd_user $pidfile

command_args=3D"-m -d -p $pidfile -f $repmgrd_config"
(...)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-250012-7788>