SimpleDaemon v.1.0.1

Advertisement
Advertisement

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

SimpleDaemon is a fork of Shane Hathaway's ... Provides a simple daemon class to ease the process of forking a Python application on Unix systems ...

 
  • SimpleDaemon
  • 1.0.1
  • Don Spaulding
  • Linux
  • Freeware
  • 10 Kb
  • 169
  • Free
 
 

Review SimpleDaemon

  • captcha
 

Other software of Don Spaulding
  • Dairy Herder  v.1.0Dairy Herder is a web application that allows dairies to track lineage and production records for their cows. A main goal is to have a pedigree generated for any given animal with the click of a button.
    
    New Miscellaneous software
    • InstallAware Free Installer  v.X6InstallAware's new Free Installer runs inside Visual Studio and creates setups automatically, by scanning your loaded solutions for dependencies and output files, and including them in your setup. This special edition of InstallAware is freeware!
    • SocialMedia driven App Developer  v.2.64If you could look 1 year ahead, would you want to see? The SocialMedia driven App Developer is calculating your Shareware's Success. Fine-tune as many cost-driving parameters as you want. See revenue and net profit results displayed over 48 months.
    • Metamill  v.8.1.1921Metamill is a professional UML modeling tool. Supports UML 2.4 standard. All 14 UML diagrams supported. Round-trip engineering for Python, ADA, Java, C, C++, C# and VB.Net. RTF and HTML document generation.
    • Help+Manual  v.7.3.2Help+Manual is a stand-alone authoring tool with an integrated WYSIWYG editor. Working with Help+Manual is as easy as writing text with a word processor. Try yourself and download Help+Manual! Writing help has never been easier.
    • ObDict  v.0.3.1Mapping container type with __getitem__ and __getattr__ access ...
    • Pytunkrank  v.0.1Python interface to TunkRank API ...