Package aisutils :: Module daemon
[hide private]
[frames] | no frames]

Module daemon

source code

Daemon tool to detach from the terminal


Requires: epydoc > 3.0alpha3

Status: under development

Since: 2008-Feb-04

To Do: Clean way to shut down

Version: 8506

Date: 2008-02-04

Author: Kurt Schwehr

Copyright: 2007, 2008

License: GPL v2

Functions [hide private]
 
stdCmdlineOptions(parser)
Standard command line options
source code
 
start(pid_file=None)
Jump to daemon mode.
source code
 
create()
nohup like function to detach from the terminal.
source code
Variables [hide private]
  __revision__ = '8506'
Function Details [hide private]

stdCmdlineOptions(parser)

source code 

Standard command line options

Parameters:
  • parser - OptionParser parser that will get the additional options

start(pid_file=None)

source code 

Jump to daemon mode. Must set either

Parameters:
  • options - must have pid_file key

create()

source code 

nohup like function to detach from the terminal. Best to call start(), not this.