Skip to content

Instantly share code, notes, and snippets.

@tad-lispy
Created July 18, 2014 15:38
Show Gist options
  • Select an option

  • Save tad-lispy/e8b46f8cdb67dafa33c7 to your computer and use it in GitHub Desktop.

Select an option

Save tad-lispy/e8b46f8cdb67dafa33c7 to your computer and use it in GitHub Desktop.

Revisions

  1. tad-lispy created this gist Jul 18, 2014.
    7 changes: 7 additions & 0 deletions etc-init-microserver-container.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    description "Microserver container"
    author "Tadeusz Łazurski <[email protected]>"
    start on filesystem and started docker and started mongo-container
    stop on runlevel [!2345]
    respawn
    exec /usr/bin/docker start -a microserver
    pre-start exec sleep 30
    8 changes: 8 additions & 0 deletions etc-init-mongo-container.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    description "Mongo container"
    author "Tadeusz Łazurski <[email protected]>"
    start on filesystem and started docker
    stop on runlevel [!2345]
    respawn
    script
    /usr/bin/docker start -a mongo
    end script