[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    Re: [Nix-dev] [Fixed?] Re: environment in systemd services
From:       Arnold Krille <arnold () arnoldarts ! de>
Date:       2016-01-31 10:46:03
Message-ID: 20160131114603.71be79b6 () xingu ! arnoldarts ! de
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Sun, 31 Jan 2016 01:28:37 +0100 "Guillaume Maudoux (Layus)"
<layus.on@gmail.com> wrote:
> Yep. Most probably SSL_CERT_FILE. Look for that string on thé github
> issues, or in the mailing list archives.

Yep, it actually is the SSL_CERT_FILE, thanks!

This service seems to do what it should (have to wait till tomorrow to
check if my startAt is what I want):

```
  systemd.services.duplyamazon = {
    path = [ pkgs.bash pkgs.duply pkgs.duplicity ]; 
    serviceConfig = {
      User = "root";
      WorkingDirectory = "/root";
    };
    environment =  {
      SSL_CERT_FILE = "/etc/ssl/certs/ca-certificates.crt";
    };
    script = "duply amazon backup";
    startAt = "*-*-* 2:10:00";
  };
```

(I could have found a similar question some days ago about duplicity
where the cert file was the answer too. Oh, if I had read the
mailinglist better…)

- Arnold

["signature.asc" (application/pgp-signature)]

_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic