chef/site-cookbooks/kosmos-mastodon/templates/default/mastodon-sidekiq.systemd.service.erb
2023-11-05 00:57:43 +01:00

20 lines
531 B
Plaintext

[Unit]
Description=mastodon-sidekiq
Requires=redis@6379.service
After=redis@6379.service
[Service]
Type=simple
User=<%= @user %>
WorkingDirectory=<%= @app_dir %>
Environment="RAILS_ENV=production"
Environment="DB_POOL=<%= @sidekiq_threads %>"
Environment="MALLOC_ARENA_MAX=2"
Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2"
ExecStart=<%= @bundle_path %> exec sidekiq -c <%= @sidekiq_threads %> -q default -q mailers -q pull -q push -q ingress
TimeoutSec=15
Restart=always
[Install]
WantedBy=multi-user.target