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
  • 197
  • 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
    • SocialMedia driven App Developer  v.2.92If 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.
    • Bersoft HTML Print  v.9.09This programmer utility for printing HTML pages and images in an invisible way can be called from your application, passing either the file to print or a file list as a parameter.
    • Metamill  v.8.2.2022Metamill 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. Fast and easy to use. www.metamill.com ...
    • RunETAC  v.2-0.1-6-enaThe ETAC programming language is a general purpose dictionary and stack based interpreted script programming language fully capable of traditional high-level block structured language style syntax.
    • ObDict  v.0.3.1Mapping container type with __getitem__ and __getattr__ access ...
    • Pytunkrank  v.0.1Python interface to TunkRank API ...