Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
OpenNebula
:
3.2
>
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 2012-01-26 19:01:43.000000000 +0100 +++ share/scripts/one 2012-02-18 19:17:01.282744892 +0100 @@ -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 @@ 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 @@ -48,6 +50,10 @@ setup() { if [ -f $LOCK_FILE ]; then + if [ ! -d $ONE_PIDDIR ]; then + mkdir $ONE_PIDDIR + chown oneadmin:cloud $ONE_PIDDIR + fi if [ -f $ONE_PID ]; then ONEPID=`cat $ONE_PID` ps $ONEPID > /dev/null 2>&1