Add some clauses to systemd
This commit is contained in:
parent
e240b33b77
commit
a7aadef0c4
|
@ -40,7 +40,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
systemd.services.objectifier = {
|
||||
after = [ "network-online.target" ];
|
||||
wantedBy = [ "default.target" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
reloadIfChanged = true;
|
||||
path = with pkgs; [ pythonYolo ];
|
||||
environment = {
|
||||
|
@ -68,7 +68,9 @@ in {
|
|||
# LockPersonality = true;
|
||||
# PermissionsStartOnly = true;
|
||||
WorkingDirectory = "${pkgs.objectifier}";
|
||||
LimitNOFILE = 4096;
|
||||
Restart = "on-failure";
|
||||
RestartSec = "5s";
|
||||
Type = "simple";
|
||||
PIDFile = "/run/objectifier.pid";
|
||||
ExecStart = let
|
||||
|
|
Loading…
Reference in New Issue