summaryrefslogtreecommitdiffstats
path: root/cloud/extra/cloud.redhat
diff options
context:
space:
mode:
Diffstat (limited to 'cloud/extra/cloud.redhat')
-rwxr-xr-xcloud/extra/cloud.redhat43
1 files changed, 43 insertions, 0 deletions
diff --git a/cloud/extra/cloud.redhat b/cloud/extra/cloud.redhat
new file mode 100755
index 0000000..670ab9f
--- /dev/null
+++ b/cloud/extra/cloud.redhat
@@ -0,0 +1,43 @@
+#!/bin/bash
+#
+# cloud: Init script for Cloud daemon.
+#
+# chkconfig: 35 91 03
+#
+# description: Deamon for creating cloud machines in an everest framework
+#
+#
+#
+
+# Source function library.
+. /etc/init.d/functions
+
+CTL=cloud-ctl
+
+[ -z "$HOME" ] && export HOME=/
+
+case "$1" in
+ start)
+ echo -n $"Starting cloud: "
+ $CTL start
+ RETVAL=$?
+ ;;
+ stop)
+ echo -n $"Stopping cloud: "
+ $CTL stop
+ RETVAL=$?
+ ;;
+ restart)
+ $0 stop
+ $0 start
+ ;;
+ status)
+ $CTL status
+ RETVAL=$?
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|status|restart}"
+ RETVAL=1
+esac
+
+exit $RETVAL