Changeset View
Changeset View
Standalone View
Standalone View
templates/gunicorn-instance.service.erb
# File managed by puppet (class gunicorn::instance <%= @name %>), changes will be lost | # File managed by puppet (class gunicorn::instance <%= @name %>), changes will be lost | ||||
[Unit] | [Unit] | ||||
Description=Gunicorn instance <%= @name %> | Description=Gunicorn instance <%= @name %> | ||||
ConditionPathExists=/etc/gunicorn/instances/<%= @name %>.cfg | ConditionPathExists=/etc/gunicorn/instances/<%= @name %>.cfg | ||||
PartOf=gunicorn.service | PartOf=gunicorn.service | ||||
ReloadPropagatedFrom=gunicorn.service | ReloadPropagatedFrom=gunicorn.service | ||||
Before=gunicorn.service | Before=gunicorn.service | ||||
[Service] | [Service] | ||||
User=<%= @user %> | User=<%= @user %> | ||||
Group=<%= @group %> | Group=<%= @group %> | ||||
PIDFile=<%= @runtime_dir %>/pidfile | PIDFile=<%= @runtime_dir %>/pidfile | ||||
RuntimeDirectory=<%= @runtime_dir %> | RuntimeDirectory=<%= @runtime_dir %> | ||||
WorkingDirectory=<%= @working_dir_override %> | WorkingDirectory=<%= @working_dir_override %> | ||||
olasdUnsubmitted Done Inline Actionsolasd: ```s/,/, /``` | |||||
<% @environment.each do |key, value| %> | |||||
Done Inline Actionss/var/value/ olasd: ```s/var/value/``` | |||||
Environment=<%= key %>=<%= value %> | |||||
<% end %> | |||||
ExecStart=/usr/bin/gunicorn3 -p <%= @runtime_dir %>/pidfile -c <%= @config_file %> <%= @executable %> | ExecStart=/usr/bin/gunicorn3 -p <%= @runtime_dir %>/pidfile -c <%= @config_file %> <%= @executable %> | ||||
ExecStop=/bin/kill -TERM $MAINPID | ExecStop=/bin/kill -TERM $MAINPID | ||||
ExecReload=/bin/kill -HUP $MAINPID | ExecReload=/bin/kill -HUP $MAINPID | ||||
[Install] | [Install] | ||||
WantedBy=multi-user.target | WantedBy=multi-user.target |