Subject: Re: Wrong path to perl
To: None <babafou@babafou.eu.org>
From: Takahiro Kambe <taca@back-street.net>
List: tech-pkg
Date: 04/04/2007 00:27:29
In message <20070403130443.GA5467@shuttle.babafou.eu.org>
on Tue, 3 Apr 2007 15:04:43 +0200,
Marc Baudoin <babafou@babafou.eu.org> wrote:
> > % head -1 /usr/pkg/sbin/postgrey
> > #!/usr/bin/perl -T -w
> > % type perl
> > perl is /usr/pkg/bin/perl
>
> Moreover, with the correct path for perl, postgrey seems to die
> just after lauch. Nothing in /var/log maillog except the correct
> startup messages:
>
> Apr 3 15:02:43 shuttle postgrey[8414]: Process Backgrounded
> Apr 3 15:02:43 shuttle postgrey[8414]: 2007/04/03-15:02:43 postgrey (type Net::Server::Multiplex) starting! pid(8414)
> Apr 3 15:02:43 shuttle postgrey[8414]: Binding to TCP port 2525 on host localhost
> Apr 3 15:02:43 shuttle postgrey[8414]: Setting gid to "32766 32766"
> Apr 3 15:02:43 shuttle postgrey[8414]: Setting uid to "200"
>
> But no postgrey process...
I couldn't reproduce the problem on NetBSD current (4.99.16) and
FreeBSD 6.2-STABLE with postgrey-1.27nb1.
What is your running platform?
# sh /etc/rc.d/postgrey start
Starting postgrey.
Pid_file "/var/run/postgrey.pid" already exists. Overwriting!
Apr 4 00:21:04 gate postgrey[18035]: Process Backgrounded
Apr 4 00:21:04 gate postgrey[18035]: 2007/04/04-00:21:04 postgrey (type Net::Server::Multiplex) starting! pid(18035)
Apr 4 00:21:04 gate postgrey[18035]: Binding to UNIX socket file /var/spool/postfix/private/postgrey using SOCK_STREAM
Apr 4 00:21:04 gate postgrey[18035]: Setting gid to "96 96"
Apr 4 00:21:04 gate postgrey[18035]: Setting uid to "96"
# ps ax |egrep postg
18035 ?? Ss 0:00.02 /usr/pkg/sbin/postgrey --privacy --unix=/var/spool/po
--
Takahiro Kambe <taca@back-street.net>