[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ispman-users
Subject:    Re: [Ispman-users] State of ispman?
From:       Robert Middleswarth <robert () middleswarth ! net>
Date:       2011-04-23 21:39:59
Message-ID: 4DB3472F.9050002 () middleswarth ! net
[Download RAW message or body]

I decided to turn my one line change into a proper patch and added a
feature request.

https://sourceforge.net/tracker/?func=detail&atid=358390&aid=3292176&group_id=8390

I am also attaching the patch.

Thanks
Robert

On 04/23/2011 02:58 PM, Robert Middleswarth wrote:
> Atif,
> 
> There is always interest.  ISPman has been pretty dead for several years
> but it fills my needs very well.  It excels at supporting mail servers
> that process large numbers of emails.  Each of my MX boxes currently
> process more then 500,000 emails a day.  That includes Amavis, SA,
> ClamAV, etc as well using LDAP for everything under postfix.  Even will
> all that running on the boxes there is still room to grow on the boxes.
>  These are PIV boxes not power houses.  I have no doubt a new system
> with decent IO could do millions.
> 
> Once we converted ispman-agent from the daemon that crashed all the time
> to a cron task ispman just works and does what we need it to do.
> Unfortunately I don't know perl well enough to make it a proper command
> line option so I could submit a patch or I would.
> 
> For the record I made the following changes to ispman-agent.
> 
> Inside the file /opt/ispman/bin/ispman-agent I commented out the
> following line.
> 
> ##      Change from Daemon to cron runable agent.
> ##        sleep( 60 * $agentFrequency );
>         unlink $pid_file && exit(0);
> 
> Then created a cron job to run the agent every 5 mins.  You can reduce
> the time down some but in my group we found that 5 min that always ran
> on the numbers was predictable and manageable.
> 
> /etc/cron.d/ispman_agent
> #!/bin/bash
> */5 * * * * root /opt/ispman/bin/ispman-agent nodetach
> 
> PS I also added to following script on the master ldap system.  For
> nightly backups.  It is simple but it keeps ldap happy.
> /etc/cron.daily/ispman_daily_maintaince .  Note I run the webservice and
> master ldap on the same box so the script might has some dependence on
> the full ispman install but I don't think so.
> 
> Thanks
> Robert
> 
> On 12/18/2009 09:45 PM, Atif Ghaffar wrote:
>> If there is interest, I can revive the isp-director codebase to a state
>> where it is as usuable as the ispman project.
>>
>>
>> On Thu, Dec 17, 2009 at 6:05 PM, anebi.bg <http://anebi.bg>@gmail.com
>> <http://gmail.com> <anebi.bg <http://anebi.bg>@gmail.com
>> <http://gmail.com>> wrote:
>>
>>     Hi,
>>
>>     i have checked some months ago different panels like ispCP and
>>     ispConfig, but i really didn't find any better application like
>>     architectures and organization of things inside like ISPMan.
>>
>>     I remember that Atif Ghaffar was started isp-director project, but it
>>     looks that it will not continue to be developed as Atif informed
>>     already.
>>
>>     We are still using ISPMan, but we are also looking for an good
>>     alternative.
>>
>>
>>     ------------------------------------------------------------------------------
>>     This SF.Net email is sponsored by the Verizon Developer Community
>>     Take advantage of Verizon's best-in-class app development support
>>     A streamlined, 14 day to market process makes app distribution fast
>>     and easy
>>     Join now and get one step closer to millions of Verizon customers
>>     http://p.sf.net/sfu/verizon-dev2dev
>>     _______________________________________________
>>     Ispman-users mailing list
>>     Ispman-users@lists.sourceforge.net
>>     <mailto:Ispman-users@lists.sourceforge.net>
>>     https://lists.sourceforge.net/lists/listinfo/ispman-users
>>
>>
>>
>>
>> -- 
>> best regards
>> Atif Ghaffar
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Verizon Developer Community
>> Take advantage of Verizon's best-in-class app development support
>> A streamlined, 14 day to market process makes app distribution fast and easy
>> Join now and get one step closer to millions of Verizon customers
>> http://p.sf.net/sfu/verizon-dev2dev 
>>
>>
>>
>> _______________________________________________
>> Ispman-users mailing list
>> Ispman-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/ispman-users
> 
> 
> 
> ------------------------------------------------------------------------------
> Fulfilling the Lean Software Promise
> Lean software platforms are now widely adopted and the benefits have been 
> demonstrated beyond question. Learn why your peers are replacing JEE 
> containers with lightweight application servers - and what you can gain 
> from the move. http://p.sf.net/sfu/vmware-sfemails
> 
> 
> 
> _______________________________________________
> Ispman-users mailing list
> Ispman-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ispman-users


["ispman_nodaemon.patch" (text/x-patch)]

--- ispman-agent        2009-06-12 18:34:02.000000000 -0400
+++ ispman-agent-test   2011-04-23 17:15:28.000000000 -0400
@@ -6,6 +6,10 @@
 # ispman-agent should be started with the argument nodetach
 # example /opt/ispman/bin/ispman-agent nodetach
 
+# when running with cron
+# ispman-agent should be started with the argument nodaemon
+# example /opt/ispman/bin/ispman-agent nodaemon
+
 package ISPMan;
 
 BEGIN {
@@ -143,7 +147,7 @@
     }
 }
 
-if ( $ARGV[0] ne "nodetach" ) {
+if (( $ARGV[0] ne "nodetach" ) || ( $ARGV[0] ne "nodaemon" )) {
     daemonize();
 }
 
@@ -255,8 +259,9 @@
 
     }
     else {
-        sleep( 60 * $agentFrequency );
+       if ( $ARGV[0] ne "nodaemon" ) {
+               sleep( 60 * $agentFrequency );
+       }
         unlink $pid_file && exit(0);
     }
 
@@ -354,6 +359,10 @@
      This is useful if you are running ispman-agent under daemontool's supervisor
      Highly recommended
 
+   to start in foreground and close when no task remain
+     ispman-agent nodaemon
+     This is useful if you are running ispman-agent using cron
+
    to force restart after a crash
      ispman-agent forcerestart
      This will remove the existing PID file and start ispman-agent instance.


------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails

_______________________________________________
Ispman-users mailing list
Ispman-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ispman-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic