Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [AMaViS-user] PID File Issues

From: Mark Martinec <Mark.Martinec+amavis(at)ijs.si>
Date: Fri Apr 25 2008 - 15:41:37 EDT


Manish,

> I am running amavisd-new 2.54. along with postfix on CentOS 5.1 on a
> mail server. There was an unclean shutdown of the mail server and when
> the system was started again, amavisd failed to start. Upon restarting
> amavisd, the following error was generated in the logs:
>
> (!)Net::Server: 2008/04/25-09:14:18 Pid_file already exists for running
> process (2440)... aborting\n\n at line 277 in
> file /usr/lib/perl5/vendor_perl/5.8.8/Net/Server.pm
>
> The problem was solved by deleting the files /var/amavis/amavisd.lock
> and /var/amavis/amavisd.pid and restarting amavisd. What needs to be
> done so that this problem does not happen again ?

Which version of Net::Server ? Are you sure the process 2440 really did not exist (perhaps it existed as a result of starting amavisd twice by mistake) ? Please see subroutine check_pid_file in /usr/lib/perl5/vendor_perl/5.8.8/Net/Server/Daemonize.pm, it does try to check if a process whose ID was found in a pid file does exist, and it aborts only if finding a process is possible and the process was found. But I see the procedure is Linux-specific for no good reason - the kill 0 would do the same job more portably.

  Mark



This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/ Received on Fri Apr 25 15:42:15 2008

This archive was generated by hypermail 2.1.8 : Tue Jul 29 2008 - 23:16:28 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library