github.com/tompao/docker@v1.9.1/contrib/host-integration/manager/upstart (about)

     1  #!/bin/sh
     2  set -e
     3  
     4  cid="$1"
     5  auth="$2"
     6  desc="$3"
     7  
     8  cat <<-EOF
     9  	description "$(echo "$desc" | sed 's/"/\\"/g')"
    10  	author "$(echo "$auth" | sed 's/"/\\"/g')"
    11  	start on filesystem and started lxc-net and started docker
    12  	stop on runlevel [!2345]
    13  	respawn
    14  	exec /usr/bin/docker start -a "$cid"
    15  EOF