add restart-cachix-deploy task

This commit is contained in:
Jörg Thalheim 2022-01-15 13:38:22 +01:00
parent c1021c32c1
commit 2d4f12ef87

View file

@ -167,3 +167,9 @@ def cleanup_gcroots(c, hosts=""):
g = DeployGroup(get_hosts(hosts))
g.run("find /nix/var/nix/gcroots/auto -type s -delete")
g.run("systemctl restart nix-gc")
@task
def restart_cachix_deploy(c, hosts=""):
g = DeployGroup(get_hosts(hosts))
g.run("systemctl restart cachix-deploy-agent")