hi,
i created a daemon process using the following code
import os
import sys
# Default daemon parameters.
# File mode creation mask of the daemon.
UMASK = 0
# Default working directory for the daemon.
WORKDIR = "/"
# Default maximum for the number of available file descriptors.
MAXFD = 10
handling SIGTERM allowed me to do cleaning up while the system shuts down
but as i mentioned previously how can my process know if the system was
not shut down properly previously
On Wed, Mar 19, 2008 at 12:36 PM, bharath venkatesh <
[EMAIL PROTECTED]> wrote:
> hi ,
> th
not shut down properly previously eg a power
failure .. so that my program can do necessary steps if cleaning up is not
done during its last termination
On Wed, Mar 19, 2008 at 8:25 AM, Gabriel Genellina <[EMAIL PROTECTED]>
wrote:
> En Tue, 18 Mar 2008 09:51:03 -0300, bharath
hi ..
my programs runs as daemon and it does some logging .. when system
shuts down .. which may be done manually . i want my process do some
cleaning up automatically such as writing in to the log file when the
process terminats before the system shuts down
hi,
my project involves lot of I/O over the network.. one part of my
project involves a server(http) which is listening on the port for many
client . this sever fetches an image from the web and and send it to
clients and many clients will request the server concurrently .. to
imple
hi ..
is it possible to refresh the cache time of a key with out having to
retrieving the cached data and storing it back in memcache .. for example if
a data is cached for
1 hour and at the 50th minute from the time this data has been cached i
want to store it in the cache for 1 more hou
hi ..
how to create macro in python for set of instruction that is done
frequently but too less in number to ignore the overhead of function call
...
--
http://mail.python.org/mailman/listinfo/python-list
hi,
i wanna run a python program by specifying only its name ex prog with
the arguments in the terminal or command line instead of specifying python
prog in the terminal to run the program not even specifying the it with
.py extension ..
for example i want to run the python program named pro
hi ..
hi i want a program to start running as daemon in background .. my
program is server listen to a client ... so i want to make that program run
as daemon .. when i execute the program the program for ex server.py it
should automatically start running as daemon in the background even if
hi,
In my project i need to store lot n lots of images in my cache and
retrieve it very frequently.. currently i am using memcache to store and
retreive images from cache... i will be using 4 GB ram as cache and each
image won't exceed 1 mb for sure ...and i came across that memcache will be
as
oh .. thanks for explaining since this is my first ever project i
don't know much ... can u give me a basic idea of how it(image_proxy_server)
can be done efficiently .. like serving many clients concurrently
On Feb 20, 2008 9:01 AM, Christian Heimes <[EMAIL PROTECTED]> wrote:
basically i want to serve many clients
concurrently in fast n efficient manner
On Feb 20, 2008 5:51 AM, Christian Heimes <[EMAIL PROTECTED]> wrote:
> bharath venkatesh wrote:
> > hi
> >i want to create fast n efficient http server which serve multiple
> > client conc
hi
i want to create fast n efficient http server which serve multiple
client concurrently .. so i thought of threading the http server using
class HTTPServer(SocketServer.ThreadingMixIn, BaseHTTPServer.HTTPServer):
pass:
as this creates an threaded version of http server ... but i re
13 matches
Mail list logo