pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43037: Postgresql start ignores pgsql_home, if run from rc

>Number:         43037
>Category:       pkg
>Synopsis:       On system start pgsql use pgsql home for -D, but not 
>pgsql_home variable
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 22 06:25:00 +0000 2010
>Originator:     Dima Veselov
>Release:        NetBSD 5.0_STABLE
System: NetBSD neo 5.0_STABLE NetBSD 5.0_STABLE (Aliguera) #1: Sun Mar 7 
15:52:59 MSK 2010 kab00m@neo:/usr/obj/sys/arch/amd64/compile/Aliguera amd64
Architecture: x86_64
Machine: amd64
        Consider pgsql_home in rc.conf is set to /var/db/pgsql, 
and home directory for user pgsql is /nonexistent.
After system start I always see

[kab00m@neo ~]$ ps ax|grep postgres
 683 ttyE0- I    0:00.08 /usr/pkg/bin/postgres -D /nonexistent/data 

Killing and restarting process it always run fine.

[root@neo kab00m]$ kill 683
[root@neo kab00m]$ /etc/rc.d/pgsql start
[kab00m@neo ~]$ ps ax|grep postgres
1166 ttyp0  S    0:00.07 /usr/pkg/bin/postgres -D /var/db/pgsql/data

        cd /usr/pkgsrc/databases/postgresql84 && make install
        cp /usr/pkg/share/examples/rc.d/pgsql /etc/rc.d
        echo 'pgsql_home="/var/pgsql"' >> /etc/rc.conf
        echo 'pgsql=YES' >> /etc/rc.conf
        shutdown -r now
        ps ax|grep postgres
        Spent few hours to understand, no ideas.


Home | Main Index | Thread Index | Old Index