19 lines
470 B
Plaintext
19 lines
470 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=50"
|
|
Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1"
|
|
ExecStart=<%= @bundle_path %> exec sidekiq -c <%= @sidekiq_threads %> -q default -q mailers -q pull -q push
|
|
TimeoutSec=15
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|