Skip to content

Commit 73d3712

Browse files
committed
Add examples dir
* Sample upstart script * Sample config file
1 parent 5c31281 commit 73d3712

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

examples/docker-gen.cfg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[[config]]
2+
template = "/etc/nginx/nginx.conf.tmpl"
3+
dest = "/etc/nginx/sites-available/default"
4+
onlyexposed = true
5+
notifycmd = "/etc/init.d/nginx reload"
6+
7+
[[config]]
8+
template = "/etc/logrotate.conf.tmpl"
9+
dest = "/etc/logrotate.d/docker"
10+
watch = true

examples/docker-gen.upstart.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!upstart
2+
3+
description "docker-gen upstart script"
4+
5+
start on startup
6+
stop on shutdown
7+
8+
respawn
9+
10+
exec start-stop-daemon --start --exec /usr/bin/docker-gen -- -config /etc/docker-gen.cfg

0 commit comments

Comments
 (0)