Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Dec 2023 01:58:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 275851] [PATCH] databases/postgresql*-server: starting doesn't set up the class
Message-ID:  <bug-275851-7788@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 275851
           Summary: [PATCH] databases/postgresql*-server: starting doesn't
                    set up the class
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: takeda@takeda.tk

Created attachment 247165
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D247165&action=
=3Dedit
Set the login class when starting postgresql

I have default class restricted as to number of open files and processes, so
this is quite visible to me.

/usr/local/etc/rc.d/postgresql initdb already sets the class:


postgresql_initdb()
{
    ${su_cmd} -l -c ${postgresql_login_class} ${postgresql_user} -c "exec
/usr/local/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U
${postgresql_user}"
}

but /usr/local/etc/rc.d/postgresql start is missing it:

postgresql_command()
{
    ${su_cmd} -l ${postgresql_user} -c "exec ${command} ${command_args}
${rc_arg}"
}

--=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-275851-7788>