From 7f5e23e04d4e1e8af942d3342bfa54db5fbd4848 Mon Sep 17 00:00:00 2001 From: rasul Date: Sun, 1 Jun 2014 22:17:16 +0400 Subject: [PATCH] Modified init script --- devops-service/INSTALL.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devops-service/INSTALL.md b/devops-service/INSTALL.md index 6a15d63..1b1d928 100644 --- a/devops-service/INSTALL.md +++ b/devops-service/INSTALL.md @@ -186,8 +186,8 @@ And copy your ec2 certificate 'ec2.pem' into /devops/.ssh/ env=production start() { echo "Starting devops service" - PIDDIR="${pid_file%/?*}" - if [ ! -f $PIDDIR ]; then + PIDDIR=`dirname $pid_file` + if [ ! -d $PIDDIR ]; then mkdir -p $PIDDIR chown $user $PIDDIR fi