Skip to content
Dan Mushkevych edited this page Nov 12, 2015 · 8 revisions

Use-Case Daemonizing script

To enable starting and running your application from withing the launch.py follow these simple rules:
Step 1: Drop your script to workers/ folder. Make sure its starter function have signature name_of_the_starter_function(*args)

Step 2: Register your application in system.process_context.ProcessContext:

'your_script_app_name': _create_context_entry(  
    process_name='your_script_app_name',    # name of the application
    classname='workers.YOUR_SCRIPT.name_of_the_starter_function',   # full module name + 'main' function name
    token='one-word-name-of-your-app'),     # log tag, and .log and .pid files naming  

Step 3. Start your application as specified in README usage section

Clone this wiki locally