I’m experiencing some peculiar behavior. After reboot, RT (4.0.13 with
libapache2-mod-perl2 version 2.0.7-3)
can’t connect to database (postgresql 9.1). PG is up and running and I can
connect to it from other clients.
If I restart Apache2, then everything is ok.
From log:
RT: DBI connect(‘dbname=rt4;host=localhost’,‘rt_user’,…) failed: could not
connect to server: Connection refused#012#011Is the server running on host
“localhost” (127.0.0.1) and accepting#012#011TCP/IP connections on port
5432? at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 103.
(/usr/local/share/perl/5.14.2/Carp.pm:102)
I’m experiencing some peculiar behavior. After reboot, RT (4.0.13 with
libapache2-mod-perl2 version 2.0.7-3)
can’t connect to database (postgresql 9.1). PG is up and running and I can
connect to it from other clients.
If I restart Apache2, then everything is ok.
From log:
RT: DBI connect(‘dbname=rt4;host=localhost’,‘rt_user’,…) failed: could not
connect to server: Connection refused#012#011Is the server running on host
“localhost” (127.0.0.1) and accepting#012#011TCP/IP connections on port
5432? at /usr/local/share/perl/5.14.2/DBIx/SearchBuilder/Handle.pm line 103.
(/usr/local/share/perl/5.14.2/Carp.pm:102)
Thanks for the init-script. It should just run from rc3.d with a lower
number
than database and webserver?
Added “# X-Start-Before: apache2” and “# X-Stop-After: apache2” to
/etc/init.d/postgresql, and updated with insserv -r postgresql and insserv
postgresql.