Sha256: c4d9a0aecbef91ac97dfac6e92ef427b8855fa919595643cc91bcaf621a508b9
Contents?: true
Size: 1.5 KB
Versions: 1
Compression:
Stored size: 1.5 KB
Contents
[Unit] Description=<%= fetch(:thin_daemon_file) %> After=syslog.target After=network.target [Service] Type=forking User=<%= fetch(:thin_daemon_user) %> Group=<%= fetch(:thin_daemon_user) %> WorkingDirectory=<%= current_path %> <% if fetch(:thin_daemon_ruby_vm) == :rbenv %> ExecStart=/bin/bash -lc 'exec /home/deploy/.rbenv/shims/bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml start' ExecStop=/bin/bash -lc 'exec /home/deploy/.rbenv/shims/bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml stop' ExecReload=/bin/bash -lc 'exec /home/deploy/.rbenv/shims/bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml restart' <% elsif fetch(:thin_daemon_ruby_vm) == :rvm %> ExecStart=<%= fetch(:rvm_path) %>/bin/rvm <%= fetch(:rvm_ruby_version) %> do bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml start ExecStop=<%= fetch(:rvm_path) %>/bin/rvm <%= fetch(:rvm_ruby_version) %> do bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml stop ExecReload=<%= fetch(:rvm_path) %>/bin/rvm <%= fetch(:rvm_ruby_version) %> do bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml restart <% else %> ExecStart=/usr/local/bin/bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml start ExecStop=/usr/local/bin/bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml stop ExecReload=/usr/local/bin/bundle exec thin -C config/thin_app_<%= fetch(:stage) %>.yml restart <% end %> TimeoutSec=<%= fetch(:thin_wait) %> Restart=always SyslogIdentifier=thin [Install] WantedBy=multi-user.target
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magic_recipes_two-0.0.94 | lib/generators/capistrano/magic_recipes/templates/thin.service.erb |