Sebastian Kippe
54332db8de
This uses the ruby_build provider for Mastodon, installing Ruby 2.4.1 currently. It also updates some other cookbooks and the runlists.
18 lines
379 B
Plaintext
18 lines
379 B
Plaintext
[Unit]
|
|
Description=mastodon-sidekiq
|
|
Requires=redis-server.service
|
|
After=redis-server.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=<%= @user %>
|
|
WorkingDirectory=<%= @app_dir %>
|
|
Environment="RAILS_ENV=production"
|
|
Environment="DB_POOL=5"
|
|
ExecStart=<%= @bundle_path %> exec sidekiq -c 5 -q default -q mailers -q pull -q push
|
|
TimeoutSec=15
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|