Permalink
Browse files

templates for upstart

  • Loading branch information...
1 parent 9ced48b commit 468e5f17266b0dd9a2a190f7b5eec306eec5156e @liangzan committed May 23, 2012
@@ -0,0 +1,6 @@
+pre-start script
+bash << "EOF"
+ mkdir -p {{logRoot}}
+ chown -R {{user}} {{logRoot}}
+EOF
+end script
@@ -0,0 +1,5 @@
+start on starting {{app}}-{{processName}}
+stop on stopping {{app}}-{{processName}}
+respawn
+
+exec su - {{user}} -c 'cd {{directory}}; {{#envVar}} export {{key}}={{val}}; {{/envVar}} {{command}} >> {{logRoot}}/{{processName}}-{{num}}.log 2>&1'
@@ -0,0 +1,2 @@
+start on starting {{app}}
+stop on stopping {{app}}

0 comments on commit 468e5f1

Please sign in to comment.