blob: 9da582060bf4a45f76bb27d333b612e90b010202 [file] [log] [blame]
Matteo Scandolof0441032017-08-08 13:05:26 -07001
2{#
3Copyright 2017-present Open Networking Foundation
4
5Licensed under the Apache License, Version 2.0 (the "License");
6you may not use this file except in compliance with the License.
7You may obtain a copy of the License at
8
9http://www.apache.org/licenses/LICENSE-2.0
10
11Unless required by applicable law or agreed to in writing, software
12distributed under the License is distributed on an "AS IS" BASIS,
13WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14See the License for the specific language governing permissions and
15limitations under the License.
16#}
17
18
Scott Bakerb63ea792016-08-11 10:24:48 -070019# Upstart script for container
20description "container"
21author "smbaker@gmail.com"
22start on filesystem and started docker
23stop on runlevel [!2345]
24respawn
25
26script
27 /usr/local/sbin/start-container-{{ container_name }}.sh ATTACH
28end script
29
30post-stop script
31 /usr/local/sbin/stop-container-{{ container_name }}.sh
32end script