bvm-twitterchiver: add twitterchiver-{relatedfetcher,archiver}

This commit is contained in:
Luke Granger-Brown 2021-04-01 00:22:57 +00:00
parent 3d475e0efe
commit bab069b286

View file

@ -53,6 +53,28 @@ in {
Restart = "always"; Restart = "always";
}; };
}; };
systemd.services.twitterchiver-relatedfetcher = {
description = "Twitterchiver Related-Fetcher";
wants = ["network-online.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
ExecStart = "${depot.go.twitterchiver.relatedfetcher}/bin/relatedfetcher --media_work_at_once 100 --media_tick_interval 10s";
EnvironmentFile = secrets.twitterchiver.environment;
User = "twitterchiver";
Restart = "always";
};
};
systemd.services.twitterchiver-archiver = {
description = "Twitterchiver Archiver";
wants = ["network-online.target"];
wantedBy = ["multi-user.target"];
serviceConfig = {
ExecStart = "${depot.go.twitterchiver.archiver}/bin/archiver";
EnvironmentFile = secrets.twitterchiver.environment;
User = "twitterchiver";
Restart = "always";
};
};
system.stateVersion = "21.05"; system.stateVersion = "21.05";
} }