Advertisement
Guest User

salt supervisord error

a guest
Dec 12th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. root@xubuntu:/srv/salt# cat top.sls
  2. base:
  3. '*':
  4. - test
  5.  
  6.  
  7. root@xubuntu:/srv/salt# cat test.sls
  8. /etc/supervisor/conf.d/test.conf:
  9. file.managed:
  10. - source: salt://test.conf
  11. - user: root
  12. - group: root
  13.  
  14. test:
  15. supervisord.running:
  16. - require:
  17. - file: /etc/supervisor/conf.d/test.conf
  18.  
  19.  
  20. root@xubuntu:/srv/salt# cat test.conf
  21. [program:test]
  22. command=/bin/cat
  23.  
  24.  
  25. root@xubuntu:/srv/salt# salt xubuntu state.highstate
  26. xubuntu:
  27. ----------
  28. State: - file
  29. Name: /etc/supervisor/conf.d/test.conf
  30. Function: managed
  31. Result: True
  32. Comment: File /etc/supervisor/conf.d/test.conf updated
  33. Changes: diff: New file
  34.  
  35. ----------
  36. State: - supervisord
  37. Name: test
  38. Function: running
  39. Result: False
  40. Comment: test: ERROR (already started)
  41. Changes:
  42.  
  43. Summary
  44. ------------
  45. Succeeded: 1
  46. Failed: 1
  47. ------------
  48. Total: 2
  49.  
  50.  
  51.  
  52. Rerunning
  53. root@xubuntu:/srv/salt# salt xubuntu state.highstate
  54. xubuntu:
  55. ----------
  56. State: - file
  57. Name: /etc/supervisor/conf.d/test.conf
  58. Function: managed
  59. Result: True
  60. Comment: File /etc/supervisor/conf.d/test.conf is in the correct state
  61. Changes:
  62. ----------
  63. State: - supervisord
  64. Name: test
  65. Function: running
  66. Result: True
  67. Comment: Not starting already running service: test
  68. Changes: test: Updating supervisor
  69.  
  70.  
  71. Summary
  72. ------------
  73. Succeeded: 2
  74. Failed: 0
  75. ------------
  76. Total: 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement