]> pd.if.org Git - newsd/blobdiff - newsd
Added config file for make test
[newsd] / newsd
diff --git a/newsd b/newsd
index 2a93085f8a098f6d2b3a9a2f4e42f44a12caa431..babb9f6af4297d0a2c9cceb5dfea4d04e199d0b5 100755 (executable)
--- a/newsd
+++ b/newsd
@@ -3,6 +3,14 @@
 use strict;
 use warnings;
 
+$ENV{PGHOST} ||= '/var/run/postgresql';
+
 use Net::Server::NNTP::Postgres;
 
+use Carp;
+$SIG{ __DIE__ } = sub { Carp::confess( @_ ) };
+$SIG{ __WARN__ } = sub { Carp::cluck( @_ ) };
+
+$ENV{TZ} = 'UTC'; # for logging
+
 Net::Server::NNTP::Postgres->new()->run();