Initial Chef repository
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env node <%= @entry %>
|
||||
User=<%= @user %>
|
||||
Group=<%= @group %>
|
||||
@@ -0,0 +1,19 @@
|
||||
#!upstart
|
||||
description "Node.js Application Server"
|
||||
|
||||
start on (local-filesystems and net-device-up IFACE!=lo)
|
||||
stop on [!12345]
|
||||
|
||||
console log
|
||||
|
||||
<% @environment.each do |key, value| -%>
|
||||
env <%= key %>="<%= value %>"
|
||||
<% end -%>
|
||||
<% unless @user.nil? -%>
|
||||
setuid <%= @user %>
|
||||
<% end -%>
|
||||
<% unless @group.nil? -%>
|
||||
setgid <%= @group %>
|
||||
<% end -%>
|
||||
chdir <%= @app_dir %>
|
||||
exec /usr/bin/env node <%= @entry %>
|
||||
Reference in New Issue
Block a user