]> pd.if.org Git - newsd/commitdiff
Set syslog options at startup.
authorNathan Wagner <nw@hydaspes.if.org>
Mon, 22 Oct 2012 04:20:29 +0000 (04:20 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Mon, 22 Oct 2012 04:20:29 +0000 (04:20 +0000)
For some reason, setting them via Net::Server->defaults()
wasn't taking effect.

newsd

diff --git a/newsd b/newsd
index babb9f6af4297d0a2c9cceb5dfea4d04e199d0b5..ec0f420510f8e2d60028f0381c2355ef769671ae 100755 (executable)
--- a/newsd
+++ b/newsd
@@ -13,4 +13,7 @@ $SIG{ __WARN__ } = sub { Carp::cluck( @_ ) };
 
 $ENV{TZ} = 'UTC'; # for logging
 
-Net::Server::NNTP::Postgres->new()->run();
+Net::Server::NNTP::Postgres->new()->run(
+       syslog_facility => 'news',
+       syslog_ident    => 'newsd',
+);