Re: Look and See script

2002-04-12 Thread Vinai Kopp


--On Donnerstag, April 11, 2002 18:53:19 -0500 Daniel J. Rychlik 
[EMAIL PROTECTED] wrote:

 it crashes.  Is their a way to write a script that monitors the behavior
 of the pid or some other kind of process that it runs from to check for
 either yes its running or no its not?

I use a small script like this:
---
#! /bin/sh

EXE=/path/to/mud
LOGFILE=/var/log/mud.log

if [ ! -x $EXE ]; then
  echo $EXE not executable  $LOGFILE
else
  while [ 1 ]; do
$EXE  $LOGFILE 21
sleep 10
  done
fi
---

HTH,

Vinai


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




php.ini

2002-04-12 Thread Michal Novotny

Hi!

Maybe it is offtopic here...

How can I assign to php-cgi a diferent php.ini for each webhost ?

Regards
Michal Novotny



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: php.ini

2002-04-12 Thread Vinai Kopp



--On Freitag, April 12, 2002 11:36:07 +0200 Michal Novotny 
[EMAIL PROTECTED] wrote:

 How can I assign to php-cgi a diferent php.ini for each webhost ?

I use no a php.ini to set default values for all webhost and
in the httpd.conf I modify them as needed using

php_value name value
php_flag name bool
php_admin_value name value
php_admin_flag name bool

For php3 the directives were different.
Here is the documentation on the php website:

http://www.php.net/manual/en/configuration.php

HTH,

Vinai


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re[2]: php.ini

2002-04-12 Thread Michal Novotny

But  this  is not for php-cgi, but mod_php, I think php-cgi don't know
php_ directives in httpd.conf and apache then wouldn't start... imho

I  want  to  be  secure,  so  I  using cgi (in mod_perl you cannot use
different user/group and cannot chroot phps like other cgis)

Regards
Michal Novotny

12. dubna 2002 13:45:41, Vinai Kopp [EMAIL PROTECTED] pise:

 --On Freitag, April 12, 2002 11:36:07 +0200 Michal Novotny 
 [EMAIL PROTECTED] wrote:

 How can I assign to php-cgi a diferent php.ini for each webhost ?

 I use no a php.ini to set default values for all webhost and
 in the httpd.conf I modify them as needed using

 php_value name value
 php_flag name bool
 php_admin_value name value
 php_admin_flag name bool

 For php3 the directives were different.
 Here is the documentation on the php website:

 http://www.php.net/manual/en/configuration.php

 HTH,

 Vinai



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Courier IMAP authldap with OpenLDAP

2002-04-12 Thread Germán Gutierrez

Thedore Knab escribio:
 I was wondering if anyone is success fully running openldap from the
 debian packages with Courier IMAP's LDAP module for authentication.

I'm currently using it in my test box.

(..)
 I am using the woody packages for Courier IMAP and Open-LDAP.

 ii  courier-authda 0.37.3-1   Courier Mail Server authentication ii
  courier-base   0.37.3-1   Courier Mail Server Base System
 ii  courier-debug  0.37.3-1   Debugging Tools for Courier Mail ii
 courier-doc0.37.3-1   Documentation for the Courier Mail ii
 courier-imap   1.4.3-1IMAP daemon with PAM and Maildir ii
 courier-ldap   0.37.3-1   LDAP support for Courier Mail Server ii
 maildrop   1.3.7-2mail delivery agent with filtering

I'm using woody and sid for the testing (there are two boxes, in fact, one
at work, and the other one at home).

(..)
 I noticed something in the authldaprc file about openldap having
 memory leaks. Does anyone have any info on this ?
It looks like ITS #1116 is closed.
(..)
 # OpenLDAP that affect this option, see ITS #1116 in openldap.org's bug
 # tracker.  Avoid using this option until these leaks are plugged. #
 # LDAP_AUTHBIND 1
I'm using this option
(..)
 LDAP_GLOB_UID   vmail
 LDAP_GLOB_GID   vmail

Does $HOME/Maildir belong to this UID/GID?
(..)
 My ldap info follows the example in the /usr/doc/courier-ldap package

 dn: [EMAIL PROTECTED],ou=mailaccounts,dc=washcoll,dc=edu
 objectclass: couriermailaccount
 mail: [EMAIL PROTECTED]
 mail: useradmin2
 cn: mail user admin
 uidNumber: 1001
 gidNumber: 1001
 homedirectory: /home/staff/useradmin2
 quota: 10M
 clearpassword: useradmin2
 description: courier user admin no shell account

Why are you using uidNumber/gidNumber attributes? In that case
you should use LDAP_UID and LDAP_GID instead of the globals

(..)

You should try some sniffing to see the ldap auth working. I
use it to make my debugging. (ethereal rulez   x))

-- 
Saludos,
  Germán



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: DEBUG: pg_*

2002-04-12 Thread Michael Wood

On Thu, Apr 11, 2002 at 08:29:28AM -0400, Gene Grimm wrote:
 Can anyone point me the right direction to understand certain
 debug messages? Each morning I see block beginning with
 DEBUG: pg_ followed by rules, views, tables, and
 indexes then a list of stats. Is this a swap daemon error
 message, or perhaps postgresql or some other package. I have

It's postgresql.

 been experiencing system hangups after several hours of
 operation with page faults and other quirks. Also, does anyone
 know the proper way of checking integrity of the swap
 partition?

If you're worried about it, just recreate it with mkswap.

-- 
Michael Wood [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Postfix Regular Expressions

2002-04-12 Thread Gene Grimm

I have simple question that I can't find documented. I need to add basic 
spam/virus filters to body_checks using regular expressions where the 
line begins with a tab character. Using \t or \s doesn't seem to 
work. Can anyone suggest the best way to handle this?



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: php.ini

2002-04-12 Thread Vinai Kopp

--On Freitag, April 12, 2002 14:02:55 +0200 Michal Novotny 
[EMAIL PROTECTED] wrote:

 But  this  is not for php-cgi, but mod_php, I think php-cgi don't know
 php_ directives in httpd.conf and apache then wouldn't start... imho

 I  want  to  be  secure,  so  I  using cgi (in mod_perl you cannot use
 different user/group and cannot chroot phps like other cgis)


Doh! youre right! Hm - sorry I can't be of assistance then, since I don't 
use php_cgi (all scripts are from our company).

Maybe some crude hack using auto_prepend_file and ini_set could work...

Greetings,

Vinai


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Look and See script

2002-04-12 Thread Chuck Peters


I did the following running from cron every 5 minutes.  Note cron output
was sent to /dev/null.  It was a test box.

#!/bin/sh
# ZOPE query
ZOPEQUERY=`ps auwx |grep z2.py | wc -l`

if test $ZOPEQUERY -lt 2; then
cd /usr/local/dc/Zope
./start 
echo `date`: No response from Zope Service  /home/zope/zoperestartlog
fi


Chuck


On Fri, 12 Apr 2002, Vinai Kopp wrote:


 --On Donnerstag, April 11, 2002 18:53:19 -0500 Daniel J. Rychlik
 [EMAIL PROTECTED] wrote:

  it crashes.  Is their a way to write a script that monitors the behavior
  of the pid or some other kind of process that it runs from to check for
  either yes its running or no its not?

 I use a small script like this:
 ---
 #! /bin/sh

 EXE=/path/to/mud
 LOGFILE=/var/log/mud.log

 if [ ! -x $EXE ]; then
   echo $EXE not executable  $LOGFILE
 else
   while [ 1 ]; do
 $EXE  $LOGFILE 21
 sleep 10
   done
 fi
 ---

 HTH,

 Vinai


 --
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Postfix Regular Expressions

2002-04-12 Thread Bart-Jan Vrielink

On Fri, 2002-04-12 at 16:42, Gene Grimm wrote:
 I have simple question that I can't find documented. I need to add basic 
 spam/virus filters to body_checks using regular expressions where the 
 line begins with a tab character. Using \t or \s doesn't seem to 
 work. Can anyone suggest the best way to handle this?

Are you using regexp or pcre maps ??
If you are using pcre style regular expressions then \t should work. If
the map is a regexp style map, then you just use a tab instead of \t.

Testing your regular expressions with postmap -q is a great way to find
out any problems with the regexes.

-- 
Tot ziens,

Bart-Jan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Look and See script

2002-04-12 Thread brian moore

On Thu, Apr 11, 2002 at 06:53:19PM -0500, Daniel J. Rychlik wrote:
 I have a mud game that runs on a Debian's system running the 2.2 kernel.
 Occasionally the mud game crashes and stops accepting connections.  I
 have to manually log in to restart the game.  I am wandering if there is
 a way (which I am sure there is) to automatically restart the mud after
 it crashes.  Is their a way to write a script that monitors the behavior
 of the pid or some other kind of process that it runs from to check for
 either yes its running or no its not?   I have honestly looked at trying
 to find an answer for myself and my problem, but I need to be pointed in
 the right direction.  Any information would helpful.  

Merc muds come with a shell script (csh, for some reason) that is
merely a loop around the mud running, with a check for a shutdown.txt
file being created (which the mud does on, well, shutdown, as a signal
to the script) as well as cycling through log files.

I use a perl script that does much the same thing, but also kills the
MUD if it hasn't seen any log output in 3 minutes, under the assumption
that the MUD is stuck in a loop.  (Yeah, yeah, I should make it set an
alarm() and use that like a watchdog timer in the MUD itself, but I
wrote this hack years and years ago and I'm too lazy to do it the
'right' way now. :))


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Look and See script

2002-04-12 Thread David Stanaway

On Fri, 2002-04-12 at 11:12, Chuck Peters wrote:
 
 I did the following running from cron every 5 minutes.  Note cron output
 was sent to /dev/null.  It was a test box.
 
 #!/bin/sh
 # ZOPE query
 ZOPEQUERY=`ps auwx |grep z2.py | wc -l`
 
 if test $ZOPEQUERY -lt 2; then
 cd /usr/local/dc/Zope
 ./start 
 echo `date`: No response from Zope Service  /home/zope/zoperestartlog
 fi
 
 


That may missfire, try this:
#!/bin/sh
# ZOPE query
ZOPEQUERY=`ps auwx |grep [z]2.py | wc -l`

if test $ZOPEQUERY -lt 2; then
cd /usr/local/dc/Zope
./start 
echo `date`: No response from Zope Service  /home/zope/zoperestartlog
fi




signature.asc
Description: This is a digitally signed message part


Courier Imap stories?

2002-04-12 Thread Alejandro Borges

Hi Debian Zealots,

Im looking for somebody with a courier IMAP running with 1+ users...
if you would please disclose the enterprise's name it would be great...

This is because here they wont use the qmail+maildir+courier solution
without, at least, one heresay success story


If anyone could help, id be really jumpin with gratitude (ill lend you
my quake bits):P


Alex 




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Courier IMAP authldap with OpenLDAP

2002-04-12 Thread Thedore Knab

Thanks for your reply. :-)

It appears that courier needs to have 2 enteries for Maldir.

LDAP_MAILDIR homeDirectory
LDAP_HOMEDIR homeDirectory

 Why are you using uidNumber/gidNumber attributes? In that case
 you should use LDAP_UID and LDAP_GID instead of the globals

I thought I needed them. I will try and take them out.


-
I feel naked outside of Vim.
-
Ted Knab


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Courier IMAP authldap with OpenLDAP

2002-04-12 Thread Germán Gutierrez

Thedore Knab escribio:
 Thanks for your reply. :-)

 It appears that courier needs to have 2 enteries for Maldir.

 LDAP_MAILDIR homeDirectory
 LDAP_HOMEDIR homeDirectory

Not exactly, if you omit the LDAP_MAILDIR attr, authdaemon will assume
$HOME/Maildir.


 Why are you using uidNumber/gidNumber attributes? In that case
 you should use LDAP_UID and LDAP_GID instead of the globals

 I thought I needed them. I will try and take them out.


 -
 I feel naked outside of Vim.
 -
Me too;)

-- 
Saludos,
  Germán



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Postfix Regular Expressions

2002-04-12 Thread Craig Sanders

On Fri, Apr 12, 2002 at 06:37:15PM +0200, Bart-Jan Vrielink wrote:
 On Fri, 2002-04-12 at 16:42, Gene Grimm wrote:
  I have simple question that I can't find documented. I need to add basic 
  spam/virus filters to body_checks using regular expressions where the 
  line begins with a tab character. Using \t or \s doesn't seem to 
  work. Can anyone suggest the best way to handle this?
 
 Are you using regexp or pcre maps ??
 If you are using pcre style regular expressions then \t should work. 

correct.

\s and \t (and \d, \w, \b, and many others) are pcre (perl-compatible
regular expressions) which are an extension of standard regexps.

 If the map is a regexp style map, then you just use a tab instead of
 \t.

yep,  and use [[:space:]] instead of \s  - that matches spaces 
tabs, just like \s does.

craig

-- 
craig sanders [EMAIL PROTECTED]

Fabricati Diem, PVNC.
 -- motto of the Ankh-Morpork City Watch


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Unsubscribe

2002-04-12 Thread Bannerman, Israel




unsubscribe


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Unsubscribe

2002-04-12 Thread Bannerman, Israel




unsubscribe


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact
[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]