Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

agent: clean systemd shutdown

+3
+3
nix/nixos/agent.nix
··· 177 177 ExecStop = pkgs.writeShellScript "sower-agent-stop" '' 178 178 RELEASE_COOKIE=$(cat release-cookie) 179 179 export RELEASE_COOKIE 180 + PID=$(${lib.getExe cfg.package} pid) 180 181 181 182 exec ${lib.getExe cfg.package} stop 183 + 184 + while [ -d "/proc/$PID" ]; do sleep 1; done 182 185 ''; 183 186 # Request reload via RPC - the agent will restart itself at end of deployment 184 187 ExecReload = pkgs.writeShellScript "sower-agent-reload" ''