diff options
author | makefu <github@syntax-fehler.de> | 2019-07-16 19:47:49 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-07-16 19:47:49 +0200 |
commit | 64c0ea71430e4aeb0bfe385439c631b3c4d6b8f3 (patch) | |
tree | 77aba4b79e38e5adc7b51010d0f5a2a546f704a4 /krebs/2configs | |
parent | 570af0025a1ff0e1346b7efcacf6eb00ebc7d4d6 (diff) |
shack/s3-power: use one-shot version
Diffstat (limited to 'krebs/2configs')
-rw-r--r-- | krebs/2configs/shack/s3-power.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/krebs/2configs/shack/s3-power.nix b/krebs/2configs/shack/s3-power.nix index f0648d00b..2b136478d 100644 --- a/krebs/2configs/shack/s3-power.nix +++ b/krebs/2configs/shack/s3-power.nix @@ -4,8 +4,8 @@ let pkg = pkgs.callPackage ( pkgs.fetchgit { url = "https://git.shackspace.de/rz/s3-power"; - rev = "1a59f8e34924c8809d06895bd96c7f98d037026e"; - sha256 = "sha256:191625mg7n41852h1c0ay3492f29n7kxkab0kwczyp07xh5y25nn"; + rev = "36df203a8fc1af02b08f60ab8d49c849b01e711f"; + sha256 = "sha256:0i05vllnfwj02sfpmg2m8hy0zq27kww9ampiaix6dl5wbyjlp51j"; }) {}; home = "/var/lib/s3-power"; cfg = toString <secrets/shack/s3-power.json>; @@ -15,10 +15,11 @@ in { createHome = true; }; systemd.services.s3-power = { + startAt = "daily"; description = "s3-power"; - wantedBy = [ "multi-user.target" ]; environment.CONFIG = "${home}/s3-power.json"; serviceConfig = { + Type = "oneshot"; User = "s3_power"; ExecStartPre = pkgs.writeDash "s3-power-pre" '' install -D -os3_power -m700 ${cfg} ${home}/s3-power.json @@ -26,7 +27,6 @@ in { WorkingDirectory = home; PermissionsStartOnly = true; ExecStart = "${pkg}/bin/s3-power"; - Restart = "always"; PrivateTmp = true; }; }; |