EnvironmentFile = mastodon.config;
PrivateTmp = true;
Restart = "always";
- TimeoutSec = 15;
+ TimeoutSec = 60;
Type = "simple";
WorkingDirectory = mastodon.railsRoot;
};
unitConfig.RequiresMountsFor = mastodon.varDir;
};
+ # FIXME: monitor jobs
systemd.services.mastodon-sidekiq = {
description = "Mastodon Sidekiq";
wantedBy = [ "multi-user.target" ];
environment.RAILS_ENV="production";
environment.DB_POOL="5";
- path = [ pkgs.bundler pkgs.file ];
+ path = [ pkgs.imagemagick pkgs.ffmpeg pkgs.bundler pkgs.file ];
script = ''
exec bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push