~snappy-dev/snappy-hub/owncloud

« back to all changes in this revision

Viewing changes to package-dir/bin/owncloud

  • Committer: Pierre-André MOREY
  • Date: 2014-12-09 15:34:36 UTC
  • Revision ID: pierre-andre.morey@canonical.com-20141209153436-7ezmw9h631baheaz
revert systemd stop as it cause more troubles than it solves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
DOCKER_CMD="/apps/docker/current/bin/docker"
4
4
CONT_NAME="owncloud-demo"
5
5
 
6
 
if [ "$1" == "stop" ]
7
 
then
8
 
        ${DOCKER_CMD} stop ${CONT_NAME}
9
 
        exit
10
 
fi
11
 
 
12
6
#ugly hack to avoid racing conditions with docker and network at reboot:
13
7
#must be removed when systemd hooks evolve
14
8
DOCKER_PS=`${DOCKER_CMD} ps`
15
9
if [ "${DOCKER_PS}" == "" ]
16
10
then
17
 
        sleep 10.0
 
11
        sleep 7.0
18
12
        DOCKER_PS=`${DOCKER_CMD} ps`
19
13
fi
20
14