upstart 289 B

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