add restart-cachix-deploy task
This commit is contained in:
parent
c1021c32c1
commit
2d4f12ef87
1 changed files with 6 additions and 0 deletions
6
tasks.py
6
tasks.py
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue