Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Creating a Service on Cent OS / Parallels Power Panel [System Services]
- #!/bin/bash
- #
- # policyserver: Startup script for Policy Server Application.
- #
- # chkconfig: 35 80 05
- # description: Startup script for Policy Server Application.
- CAMSPARK_POLICY_HOME=/var/local/camsparkserver/Policy;
- export CAMSPARK_POLICY_HOME
- start() {
- echo -n "Starting Policy Server: "
- $CAMSPARK_POLICY_HOME/Policy.sh start
- sleep 2
- echo "done"
- }
- stop() {
- echo -n "Stopping Policy Server: "
- $CAMSPARK_POLICY_HOME/Policy.sh stop
- echo "done"
- }
- # See how we were called.
- case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- stop
- start
- ;;
- *)
- echo $"Usage: policyserver {start|stop|restart}"
- exit
- esac
Add Comment
Please, Sign In to add comment