ssh-agent: Tweaks

This commit is contained in:
Eelco Dolstra 2014-04-18 17:37:47 +02:00
parent fec3bc85a6
commit 85fdaed9de

View File

@ -91,9 +91,12 @@ in
description = "SSH Agent";
wantedBy = [ "default.target" ];
serviceConfig =
{ ExecStart = "${pkgs.openssh}/bin/ssh-agent -a %t/ssh-agent";
{ ExecStartPre = "${pkgs.coreutils}/bin/rm -f %t/ssh-agent";
ExecStart = "${pkgs.openssh}/bin/ssh-agent -a %t/ssh-agent";
StandardOutput = "null";
Type = "forking";
Restart = "on-failure";
SuccessExitStatus = "0 2";
};
};