fix nodeinfo.sh

This commit is contained in:
Jonas Nick
2018-11-29 00:30:12 +00:00
parent 95c706b1b0
commit c61c21e2e1
2 changed files with 8 additions and 11 deletions

View File

@@ -60,13 +60,14 @@ in {
after = [ "clightning.service" "tor.service" ];
path = [ pkgs.clightning pkgs.jq pkgs.sudo ];
serviceConfig = {
ExecStart="${pkgs.bash}/bin/bash ${pkgs.nodeinfo}/bin/nodeinfo";
ExecStart="${pkgs.bash}/bin/bash ${pkgs.nodeinfo}/bin/nodeinfo > /var/lib/nodeinfo.nix";
User = "root";
Type = "simple";
RemainAfterExit="yes";
Restart = "on-failure";
RestartSec = "10s";
};
};
# Define a user account. Don't forget to set a password with passwd.