Advertisement
danielhilst

app01.json

Nov 17th, 2015
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. {
  2. "apps" {
  3. "andon" {
  4. "prog": "java"
  5. "args": "-D .. -cp lib/"
  6. "depends-on": "postgres"
  7. "environment": {
  8. "CLASSPATH": "lib/*:3rdparty/*"
  9. }
  10. },
  11.  
  12. "postgres" {
  13. "prog": "postmaster",
  14. "db-folder": "postgres-data/",
  15. "args": "-h 0.0.0.0 -D @{db-folder}",
  16. "run-as": "postgres",
  17. "before-up": "check-database",
  18. "at-fail": "notify-admin",
  19. },
  20.  
  21. "check-database" {
  22. "prog": "@{csi-scripts}/check-postgres.sh",
  23. "args": "@{postgres/db-folder}",
  24. "oneshot": true,
  25. }
  26. }
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement