Scott Baker | b63ea79 | 2016-08-11 10:24:48 -0700 | [diff] [blame] | 1 | # Upstart script for container |
2 | description "container" | ||||
3 | author "smbaker@gmail.com" | ||||
4 | start on filesystem and started docker | ||||
5 | stop on runlevel [!2345] | ||||
6 | respawn | ||||
7 | |||||
8 | script | ||||
9 | /usr/local/sbin/start-container-{{ container_name }}.sh ATTACH | ||||
10 | end script | ||||
11 | |||||
12 | post-stop script | ||||
13 | /usr/local/sbin/stop-container-{{ container_name }}.sh | ||||
14 | end script |