Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
OpenNebula
:
3.0
>
opennebula3
> sunstone.init
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sunstone.init of Package opennebula3
#!/bin/sh ### BEGIN INIT INFO # Provides: sunstone # Required-Start: $remote_fs $syslog $network one # Required-Stop: $remote_fs $syslog # Default-Start: 3 5 # Default-Stop: 0 1 2 6 # Short-Description: OpenNebula web-based operations center # Description: OpenNebula Sunstone provides a graphical web-based # interface for administrators and users to manage # the resources of a cloud infraestructure. ### END INIT INFO . /etc/rc.status rc_reset # Return values acc. to LSB for all commands but status: # 0 - success # 1 - generic or unspecified error # 2 - invalid or excess argument(s) # 3 - unimplemented feature (e.g. "reload") # 4 - insufficient privilege # 5 - program is not installed # 6 - program is not configured # 7 - program is not running #Check /etc/one/sunstone-server.conf for configuration options start() { /sbin/startproc -e -u oneadmin -g cloud /usr/bin/sunstone-server start } stop() { /usr/bin/sunstone-server stop } case "$1" in start) $1 ;; stop) $1 ;; restart) stop start ;; reload) ;; status) ;; *) echo $"Usage: $0 {start|stop|restart}" exit 2 esac exit $?