Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
OpenNebula
:
3.0
>
opennebula3
> openneb_creatPIDdir.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File openneb_creatPIDdir.patch of Package opennebula3
--- share/scripts/one.orig +++ share/scripts/one @@ -17,6 +17,7 @@ #--------------------------------------------------------------------------- # if [ -z "$ONE_LOCATION" ]; then + ONE_PIDDIR=/var/run/one ONE_PID=/var/run/one/oned.pid ONE_SCHEDPID=/var/run/one/sched.pid ONE_CONF=/etc/one/oned.conf @@ -28,6 +29,7 @@ if [ -z "$ONE_LOCATION" ]; then LOCK_FILE=/var/lock/one/one else + ONE_PIDDIR=$ONE_LOCATION/var ONE_PID=$ONE_LOCATION/var/oned.pid ONE_SCHEDPID=$ONE_LOCATION/var/sched.pid ONE_CONF=$ONE_LOCATION/etc/oned.conf @@ -53,6 +55,11 @@ setup() exit 1 fi + if [ ! -d $ONE_PIDDIR ]; then + mkdir $ONE_PIDDIR + chown oneadmin:cloud $ONE_PIDDIR + fi + if [ -f $LOCK_FILE ]; then if [ -f $ONE_PID ]; then ONEPID=`cat $ONE_PID`