systemd service: fix serviceConfig
This commit is contained in:
parent
a68b015209
commit
5c701b6878
|
@ -36,7 +36,7 @@ e11sync-backend: {
|
|||
E11SYNC_SECRET_KEY_PATH = "/run/credentials/secret_key";
|
||||
};
|
||||
wantedBy = ["multi-user.target"];
|
||||
serviceConfig =
|
||||
serviceConfig = lib.mkMerge [
|
||||
{
|
||||
Type = "notify";
|
||||
NotifyAccess = "all";
|
||||
|
@ -53,9 +53,10 @@ e11sync-backend: {
|
|||
ProtectKernelTunables = true;
|
||||
ProtectControlGroups = true;
|
||||
}
|
||||
// lib.mkIf cfg.migrateOnStart {
|
||||
(lib.mkIf cfg.migrateOnStart {
|
||||
ExecStartPre = "${pkg-backend}/bin/e11sync migrate";
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue