Re: see who is online

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Have you verified that the proc files that are that old are really processes
that no longer exist?  On our system, we do have lots of old proc files, but
the processes are still around as well (and connections are ESTABLISHED).
We are looking at turning on KEEPALIVE in the kernel, which likely will get
rid of a number of these if for some reason there is something wrong with
the connections, even if they do say they are ESTABLISHED.  In any case, we
have seen processes stick around for months as a result.

On the other hand, if your server crashes or you have processes that go away
in a bad way (which isn't good for Cyrus in general), you will have proc files
that stick around.  What we have done is have our Cyrus startup script wipe
the directory prior to startup.  The easiest way to do this is something like
the following:

 mv /var/imap/proc /var/imap/proc-delete
 mkdir /var/imap/proc
 chmod 750 /var/imap/proc              <may vary in your environment>
 chown cyrus /var/imap/proc            <may vary in your environment>
 <startup cyrus>
 rm -rf /var/imap/proc-delete &

The above procedure prevents the cleanup of the directory from interfering
with the speed of trying to get the server back up and running.

Scott

--On Tuesday, November 14, 2006 8:21 AM -0300 Marcelo Maraboli <marcelo.maraboli@xxxxxx> wrote:

I wouldn´t recommend that because I have lots of files
in that directory that are 3 months old...

doesn´t the "master" process clean this up on shutdown ??

regards,

Chaskiel M Grundman wrote:
--On Monday, November 13, 2006 08:39:39 PM +0100 Wolfgang Hennerbichler
<wogri@xxxxxxxxx> wrote:

I am trying to find a way to see which users are currently running an
IMAP session. Does anybody have a clue if (or how) that is possible?  My
setup runs through saslauthd and ldap right now, all the  processess are
owned by user 'cyrus'.

${configdirectory}/proc contains one file per active imapd, which lists
the hostname, ip address, username, and selected mailbox of that
process's connection


----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html



--
+-----------------------------------------------------------------------+
     Scott W. Adkins                http://www.cns.ohiou.edu/~sadkins/
  UNIX Systems Engineer                  mailto:adkinss@xxxxxxxx
       ICQ 7626282                 Work (740)593-9478 Fax (740)593-1944
+-----------------------------------------------------------------------+
    PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/

Attachment: pgp93NoCpI8CZ.pgp
Description: PGP signature

----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux