18 lines
430 B
Plaintext
18 lines
430 B
Plaintext
[Unit]
|
|
Description=mastodon-sidekiq-scheduler
|
|
Requires=redis-server.service
|
|
After=redis-server.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=<%= @user %>
|
|
WorkingDirectory=<%= @app_dir %>
|
|
Environment="RAILS_ENV=production"
|
|
Environment="LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.1"
|
|
ExecStart=<%= @bundle_path %> exec sidekiq -c <%= @sidekiq_threads %> -q scheduler
|
|
TimeoutSec=15
|
|
Restart=always
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|