Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.186.942 Times

SimpleDaemon 1.0.1

Company: Don Spaulding
Date Added: September 20, 2013  |  Visits: 337

SimpleDaemon

Report Broken Link
Printer Friendly Version


Product Homepage
Download (38 downloads)



SimpleDaemon is a fork of Shane Hathaway's daemon.py script.<br /><br />Example<br /><br />Writing a daemon requires creating two files, a daemon file and a configuration file with the same name.<br /><br />hellodaemon.py:<br /><br />import simpledaemon<br />import logging<br />import time<br /><br />class HelloDaemon(simpledaemon.Daemon):<br /> default_conf = '/etc/hellodaemon.conf'<br /> section = 'hello'<br /><br /> def run(self):<br /> while True:<br /> logging.info('The daemon says hello')<br /> time.sleep(1)<br /><br />if __name__ == '__main__':<br /> HelloDaemon().main()<br /><br />hellodaemon.conf:<br /><br />[hello]<br />uid =<br />gid =<br />pidfile = ./hellodaemon.pid<br />logfile = ./hellodaemon.log<br />loglevel = info<br /><br />Here are some key features of "SimpleDaemon":<br /><br />?*A* reads the command line<br />?*A* reads a configuration file<br />?*A* configures logging<br />?*A* calls root-level setup code<br />?*A* drops privileges<br />?*A* calls user-level setup code<br />?*A* detaches from the controlling terminal<br />?*A* checks and writes a pidfile<br /><br /><br />#md5=10ab1ebe102ed17ed452c119cd4c5a1a

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Calls Code Command Configuration Configures Daemon Features File Hellodaemonlogloglevel Hellodaemonpidlogfile Infohere Line Logging Pidfile Privileges Quotsimpledaemonquot Reads Setup Simpledaemon Terminal Userlevel
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


SIMPLEDAEMON RELATED
Text Management  -  Read configuration from a text file 1.0
In a configuration file you have some options. These are grouped in name and value pairs. These pairs belong to one section and a section is indicated by a name in brackets. This Python class reads such a file.
 
Utilities  -  Remote Secure Command System 1.0
Remote Secure Command System project is a remote asynchronous and secure command system based on a file configuration. A standalone server sends and receives commands through files, and a batch system launch ssh and scp commands.. Get A Remote...
40.96 KB  
Programming  -  Event Driven Command Line Handler 1.1.6
For Java, parses GNU standards compliant command line arguments and calls event handler methods/fields automatically, based on given arguments (cmd line & from file). Use annotations to define your options, and descriptions for the auto generated...
27.42 KB  
Libraries  -  libtecla 1.6.1
The tecla library provides UNIX and LINUX programs with interactive command line editing facilities, similar to those of the unix tcsh shell. In addition to simple command-line editing, it supports recall of previously entered command lines, TAB...
512 KB  
Application Add-Ins  -  IDAutomation UPC EAN Barcode Fonts for Mac OS 10.10
A professional, advanced font set with tools, macros and source code that uses a single font file to create UPC-A, UPC-E, EAN-8, EAN-13, EAN-14, JAN, ISBN and Bookland barcodes. This package uses Patent Pending font technology by IDAutomation to...
1.9 MB  
Development Editors  -  Legible Assembler 1.0 Beta
The Legible Assembler is an Open Source attempt to build an assembler that can convert Legible Assembly code into a linkable PE object file. Legible Assembly will use a mixture of AT&T and Intel styles, prepositions and carriage return line...
 
Modules  -  WP Advanced Code Editor 1.0
This features real time syntax highlighting, line numbering, full screen editing and other things.InstallationUnpack and upload it to the /wp-content/plugins/ directory.Activate the plugin through the 'Plugins' menu in WordPress. Requirements: -...
 
File Cataloguers  -  UUMerge Freeware Edition 1.00
uuMerge Freeware Edition is a command line utility that can be used either to combine multiple text files into a single text file with a separator line between the contents of each file; or alternatively to process a 'merged' file (...
79 KB  
Libraries  -  Simple Injector 1.2
Simple Injector solely supports code-based configuration and is an ideal starting point for developers unfamiliar with larger IoC / DI libraries. Get Simple Injector and take it for a spin to see what it can actually do for you!
 
Programming  -  Generatator 0.01
Generic source code generation utility working by aggregating file chunks and searching/replacing keywords. Supports re-injection in re-generated files of code already changed in previously generated files
33.17 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB