Guest User

Untitled

a guest
Aug 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Creating a Service on Cent OS / Parallels Power Panel [System Services]
  2. #!/bin/bash
  3. #
  4. # policyserver: Startup script for Policy Server Application.
  5. #
  6. # chkconfig: 35 80 05
  7. # description: Startup script for Policy Server Application.
  8.  
  9. CAMSPARK_POLICY_HOME=/var/local/camsparkserver/Policy;
  10. export CAMSPARK_POLICY_HOME
  11.  
  12. start() {
  13. echo -n "Starting Policy Server: "
  14. $CAMSPARK_POLICY_HOME/Policy.sh start
  15. sleep 2
  16. echo "done"
  17. }
  18.  
  19. stop() {
  20. echo -n "Stopping Policy Server: "
  21. $CAMSPARK_POLICY_HOME/Policy.sh stop
  22. echo "done"
  23. }
  24.  
  25. # See how we were called.
  26. case "$1" in
  27. start)
  28. start
  29. ;;
  30. stop)
  31. stop
  32. ;;
  33. restart)
  34. stop
  35. start
  36. ;;
  37. *)
  38. echo $"Usage: policyserver {start|stop|restart}"
  39. exit
  40. esac
Add Comment
Please, Sign In to add comment