Skip to content
Snippets Groups Projects
Commit 316da060 authored by Florian Sesser's avatar Florian Sesser
Browse files

Make systemd create a directory for our state

parent c0410bb7
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,6 @@ rec {
ristrettoSigningKeyPath = deployment.secrets.ristretto-signing-key.destination;
stripeSecretKeyPath = deployment.secrets.stripe-secret-key.destination;
database = "SQLite3";
databasePath = "/var/db/vouchers.sqlite3";
databasePath = "/var/lib/zkapissuer/vouchers.sqlite3";
};
}
......@@ -162,6 +162,13 @@ in {
Group = "zkapissuer";
};
# Make systemd create a User/Group owned directory for PaymentServer
# state. According to the docs at
# https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RuntimeDirectory=
# "The specified directory names must be relative" ... this
# makes systemd create /var/lib/zkapissuer/ for us:
serviceConfig.StateDirectory = "zkapissuer";
script =
let
# Compute the right command line arguments to pass to it. The
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment