Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ supervisor::app { 'your-app-title':
directory => 'Path where your command will be run', # required
user => 'User to execute this app', # Defaults to root
environment => 'Hash map of environment variables to be used by your program', # Defaults to undef
numprocs => 'Number of processes to start', # Defaults to undef
startsecs => 'The total number of seconds which the program needs to stay running after a startup to consider the start successful', # Defaults to undef
stopwaitsecs => 'The number of seconds to wait for the OS to return a SIGCHILD to supervisord after the program has been sent a stopsignal', # Defaults to undef
priority => 'The relative priority of the program in the start and shutdown ordering', # Defaults to undef
Expand Down
1 change: 1 addition & 0 deletions manifests/app.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
$command,
$directory,
$user = 'root',
$numprocs = undef,
$startsecs = undef,
$stopwaitsecs = undef,
$priority = undef,
Expand Down
3 changes: 3 additions & 0 deletions templates/supervisor.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ user=<%= @user %>
autostart=true
autorestart=true
redirect_stderr=True
<%- if @numprocs -%>
numprocs=<%= @numprocs %>
<%- end -%>
<%- if @startsecs -%>
startsecs=<%= @startsecs %>
<%- end -%>
Expand Down