Advertisement
Guest User

Untitled

a guest
Nov 18th, 2013
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. bash script:
  2.  
  3. #!/bin/bash
  4. /bin/echo -en "HTTP/1.1 200 OK\r\n"
  5. /bin/echo -en "Content-Type: text/plain\r\n"
  6. /bin/echo -en "Content-Length: 26\r\n"
  7. /bin/echo -en "\r\n"
  8. /bin/echo -en "Puppetmaster is running.\r\n"
  9.  
  10. xinetd:
  11.  
  12. service hc-server
  13. {
  14. disable = no
  15. flags = REUSE
  16. socket_type = stream
  17. protocol = tcp
  18. port = 9999
  19. type = UNLISTED
  20. server = /root/hc-server.sh
  21. user = root
  22. instances = UNLIMITED
  23. wait = no
  24. log_type = SYSLOG daemon debug
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement