#
# This file is managed by puppet class 'uwsgi'
#
# uWSGI Emperor process Upstart script
#
description "uWSGI Emperor"
start on runlevel [2345]
stop on runlevel [!2345]

respawn

pre-start script
    uwsgilog="<%= @log_file %>"
    uwsgipid="<%= @pidfile %>"
    uwsgisocket="<%= @socket %>"
    uwsgilogddir="${uwsgilogd%/*}"
    uwsgipiddir="${uwsgipid%/*}"
    uwsgisocketdir="${uwsgisocket%/*}"
    mkdir -p "$uwsgipiddir"
    mkdir -p "$uwsgisocketdir"
    mkdir -p "$uwsgilogdir"
end script
exec uwsgi --die-on-term --ini <%= @config_file %>

#
# This file is managed by puppet class 'uwsgi'
#
# uWSGI Emperor process Upstart script
#
description "uWSGI Emperor"
start on runlevel [2345]
stop on runlevel [!2345]

respawn

pre-start script
    uwsgilog="<%= @log_file %>"
    uwsgipid="<%= @pidfile %>"
    uwsgisocket="<%= @socket %>"
    uwsgilogdir="${uwsgilog%/*}"
    uwsgipiddir="${uwsgipid%/*}"
    uwsgisocketdir="${uwsgisocket%/*}"
    mkdir -p "$uwsgipiddir"
    mkdir -p "$uwsgisocketdir"
    mkdir -p "$uwsgilogdir"
end script
exec uwsgi --die-on-term --ini <%= @config_file %>

Fix typo in Upstart script
Fix typo in Upstart script
