NVarra
Verified User
Exim and vm-pop3d here...
same here, happens on apache 2. this is a directadmin issue because this does not happen on other servers with the software. Only on the da servers. So something with the da setup of this is wrong and causing problems.
I think this needs to be recognized as an offical bug
#!/bin/sh
NUM=`netstat -nap --inet|grep ":80"|grep LISTEN|grep exim|wc -l`
if test ! $NUM = "0"; then
killall -9 exim
sleep 5
/etc/init.d/exim start
/etc/init.d/httpd start
fi
wget -O /etc/exim.pl http://files.directadmin.com/services/exim.pl
sub get_domain_owner
{
my ($domain) = @_;
my $username="";
open(DOMAINOWNERS,"/etc/virtual/domainowners");
while (<DOMAINOWNERS>)
{
$_ =~ s/\n//;
my ($dmn,$usr) = split(/: /, $_);
if ($dmn eq $domain)
{
return $usr;
}
}
close(DOMAINOWNERS);
return -1;
}
sub get_domain_owner
{
my ($domain) = @_;
my $username="";
open(DOMAINOWNERS,"/etc/virtual/domainowners");
while (<DOMAINOWNERS>)
{
$_ =~ s/\n//;
my ($dmn,$usr) = split(/: /, $_);
if ($dmn eq $domain)
{
[b]close(DOMAINOWNERS);[/b]
return $usr;
}
}
close(DOMAINOWNERS);
return -1;
}
[root customapache]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]
#!/usr/bin/perl
use Env;
my $sm = '/usr/sbin/sendmail.orig';
foreach (@ARGV) {
$arg="$arg" . " $_";
}
open (MAIL,"|$sm $arg") || die "cannot open $sm: $\n";
while (<STDIN> ) {
print MAIL;
}
close (MAIL);
mv sendmail sendmail.orig
mv sendmail.new sendmail
chmod 755 sendmail