mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 10:23:58 +09:00
Bug #678: Startup should create dir for pid file if it does not exists
(cherry picked from commit e0c813b591)
This commit is contained in:
1 parent
04d2611791
commit
404a2fa100
1 file changed
+9
@@ -52,6 +52,15 @@ BACKUP="true"
|
||||
#------------------------------------------------------------------------------
|
||||
setup()
|
||||
{
|
||||
ONE_PID_DIR=`dirname $ONE_PID`
|
||||
|
||||
mkdir -p $ONE_PID_DIR
|
||||
|
||||
if [ ! -w $ONE_PID_DIR ]; then
|
||||
echo "$ONE_PID_DIR is not writable, cannot start oned or scheduler."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -f $LOCK_FILE ]; then
|
||||
if [ -f $ONE_PID ]; then
|
||||
ONEPID=`cat $ONE_PID`
|
||||
|
||||
Reference in new issue
Block a user