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";
|
E11SYNC_SECRET_KEY_PATH = "/run/credentials/secret_key";
|
||||||
};
|
};
|
||||||
wantedBy = ["multi-user.target"];
|
wantedBy = ["multi-user.target"];
|
||||||
serviceConfig =
|
serviceConfig = lib.mkMerge [
|
||||||
{
|
{
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
NotifyAccess = "all";
|
NotifyAccess = "all";
|
||||||
@ -53,9 +53,10 @@ e11sync-backend: {
|
|||||||
ProtectKernelTunables = true;
|
ProtectKernelTunables = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
}
|
}
|
||||||
// lib.mkIf cfg.migrateOnStart {
|
(lib.mkIf cfg.migrateOnStart {
|
||||||
ExecStartPre = "${pkg-backend}/bin/e11sync migrate";
|
ExecStartPre = "${pkg-backend}/bin/e11sync migrate";
|
||||||
};
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user