Context manager for a daemon pid file

Category: Python - Miscellaneous

Context manager for a pid (process id) file used to tell whether a daemon process is still running.

On entry, it writes the pid of the current process to the path. On exit, it removes the file.

Designed to work with python-daemon. Date: 22 February, 2012


Daemon - Pid

Homepage: http://code.activestate.com/recipes/577911-context-manager-for-a-daemon-pid-file/?in=lang-python

Developer: Graham Poulter

License: Freeware

Operating System: Windows

Add a Comment

all are required fields

     
What do you think of this resource?

Select Your Rate:

Votes:0

 

Related Scripts Download

Logdog is a tool that monitors messages passing through syslogd and takes action based on key words and phrases.

developer Developer: Brandon Zehm
license License: Freeware
operating systems Operating System: linux, freebsd, osx


Voodoo chat is a stream-chat engine which is designed to work on high-loaded chat-servers -- the special program to handle multiple user-connections.

developer Developer: Vlad Vostrykh
license License: Freeware
operating systems Operating System: Linux,FreeBSD, Windows


Octod is a download manager daemon -- a daemon that listens at the network interface for incoming download jobs and performs them (simultaneously) in the background.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


nanoFTPd is an ftp daemon written in php.

developer Developer: SourceForge.net
license License: Freeware
operating systems Operating System: All


The following code lets you implement a daemon very easily, and also lets you write cleanup code.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


how to create a process Daemon in C.

developer Developer: snippets.dzone.com
license License: Freeware
operating systems Operating System: Windows, Linux


mntd is an automount daemon and shared library written in C for automatically mount hotplug devices like USB sticks, Compact Flash cards or other mountable devices on linux 2.

developer Developer: SourceForge.net
license License: Artistic License, GNU General Public License (GPL)
operating systems Operating System: Linux


Nothing fancy here.

developer Developer: Eric Snow
license License: Freeware
operating systems Operating System: Windows


My implementation of 2-3 Trees on python.

developer Developer: Boris
license License: Freeware
operating systems Operating System: Windows