Skip to content

Commit

Permalink
Create /var/run/vpoller directory if it doesn't exist before starting
Browse files Browse the repository at this point in the history
the daemons
  • Loading branch information
dnaeon committed Aug 22, 2014
1 parent 5e5c7cd commit 89f5b9c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/init.d/vpoller-proxy
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ set -e
. /lib/lsb/init-functions

do_start() {
if [ ! -d /var/run/vpoller ]; then
mkdir -p /var/run/vpoller
fi

${DAEMON} -d start
}

Expand Down
4 changes: 4 additions & 0 deletions src/init.d/vpoller-worker
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ set -e
. /lib/lsb/init-functions

do_start() {
if [ ! -d /var/run/vpoller ]; then
mkdir -p /var/run/vpoller
fi

${DAEMON} -d start
}

Expand Down

0 comments on commit 89f5b9c

Please sign in to comment.