aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-02-21 18:32:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2013-02-21 18:32:15 -0300
commitb90eb233578a2fbf8b4cf7e8f5c64afc04cbae3e (patch)
treee67f2e74fbf7a91e9105111ee6190339fabd290c
parent02dd920fa316f4cee0577b88b46b21d5c6fdab4c (diff)
downloadpuppet-supervisor-b90eb233578a2fbf8b4cf7e8f5c64afc04cbae3e.tar.gz
puppet-supervisor-b90eb233578a2fbf8b4cf7e8f5c64afc04cbae3e.tar.bz2
Adding template
-rw-r--r--templates/app.erb9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/app.erb b/templates/app.erb
new file mode 100644
index 0000000..57e52f4
--- /dev/null
+++ b/templates/app.erb
@@ -0,0 +1,9 @@
+[program:<%= @appname %>]
+command=<%= @command %>
+directory=<%= @directory %>
+user=<%= @user %>
+autostart=true
+autorestart=true
+redirect_stderr=True
+stderr_logfile=/dev/null
+stdout_logfile=/var/log/supervisor/<%= @appname %>.log