zatosource/zato — pull request #89 by ibeex (2013-09-03 09:39:28+00:00)
Title: Added ability to use zato start/stop/info for custom python program

for custom program,
create directory
create vitrualenv there
create .zato-info wit "component": "CUSTOM"
crete subdirectories logs, config/zdaemon
deploy program
create custom start that activate virtualenv and starts your program
$ cat custom_start.py

activate_this = '/home/vagrant/tmp/custom_test/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
import yourprogram
if __name__ == "__main__":
yourprogram.main()