Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:onielsen:Virtualization:Testing
opennebula
openneb_LSBhead_one.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openneb_LSBhead_one.patch of Package opennebula
--- share/scripts/one.orig +++ share/scripts/one @@ -16,6 +16,32 @@ # limitations under the License. # #--------------------------------------------------------------------------- # +# /etc/init.d/one +### BEGIN INIT INFO +# Provides: one +# Required-Start: $remote_fs $syslog $network +# Required-Stop: $remote_fs $syslog +# Default-Start: 3 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Cloud infrastructure service +# Description: The oned is the daemon process controlling the OpenNebula +# cloud instrastructure +### END INIT INFO + +# First reset status of this service +. /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 + if [ -z "$ONE_LOCATION" ]; then ONE_PID=/var/run/one/oned.pid ONE_SCHEDPID=/var/run/one/sched.pid @@ -174,7 +200,7 @@ start() if [ "$STARTED" == "false" ]; then stop - exit -1 + exit 7 fi } @@ -184,7 +210,7 @@ start_oned() [ -f "$ONE_LOG" ] && mv $ONE_LOG{,.$(date '+%Y%m%d%H%M%S')} [ -f "$ONE_XMLRPC_LOG" ] && mv $ONE_XMLRPC_LOG{,.$(date '+%Y%m%d%H%M%S')} fi - $ONED -f 2>&1 & + /sbin/startproc -u oneadmin -g cloud $ONED -f 2>&1 LASTRC=$? LASTPID=$! @@ -202,7 +228,7 @@ start_sched() if [ "$BACKUP" = "true" ];then [ -f "$ONE_SCHED_LOG" ] && mv $ONE_SCHED_LOG{,.$(date '+%Y%m%d%H%M%S')} fi - $ONE_SCHEDULER& + /sbin/startproc -u oneadmin -g cloud $ONE_SCHEDULER LASTRC=$? LASTPID=$! @@ -227,10 +253,12 @@ case "$1" in start) setup start + rc_status -v ;; stop) stop echo "oned and scheduler stopped" + rc_status -v ;; restart) stop
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor