2 changed files with 33 additions and 0 deletions
@ -0,0 +1,17 @@
|
||||
[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 |
Loading…
Reference in new issue