Skip to content

Commit

Permalink
Merge pull request #132 from kgiszczak/monit-template
Browse files Browse the repository at this point in the history
Run the shell as a login shell.
  • Loading branch information
seuros committed Sep 30, 2015
2 parents 20811d4 + bd539b6 commit 6a7420a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/capistrano/templates/puma_monit.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
#
check process <%= puma_monit_service_name %>
with pidfile "<%= fetch(:puma_pid) %>"
start program = "/usr/bin/sudo -u <%= puma_user(@role) %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:puma] %> -C <%= fetch(:puma_conf) %> --daemon'"
stop program = "/usr/bin/sudo -u <%= puma_user(@role) %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:pumactl] %> -S <%= fetch(:puma_state) %> stop'"
start program = "/usr/bin/sudo -iu <%= puma_user(@role) %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:puma] %> -C <%= fetch(:puma_conf) %> --daemon'"
stop program = "/usr/bin/sudo -iu <%= puma_user(@role) %> /bin/bash -c 'cd <%= current_path %> && <%= SSHKit.config.command_map[:pumactl] %> -S <%= fetch(:puma_state) %> stop'"

0 comments on commit 6a7420a

Please sign in to comment.