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

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

Serving Software Downloads in 976 Categories, Downloaded 29.882.920 Times

SimpleDaemon 1.0.1

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

SimpleDaemon

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 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
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...
 
Social Networking  -  Line Awesome Features 1.1.0.0
Line Awesome Features : Updated Version :: Minor Fix. Line is application for instant messaging on smartphones and personal computers. Line users exchange text messages, graphics, video and audio media, make free VoIP calls, and hold...
1024 KB  
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  -  pretendroot 0.9
Pretendroot is an LD_PRELOAD library which overrides some glibc calls, pretending you are root while doing file system operations. The main difference from Debians fakeroot is that no daemons or other processes are involved, fake ownership and...
13.31 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  -  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  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB