mirror of
https://github.com/Kyren223/eko.git
synced 2025-09-05 21:18:14 +00:00
Hopefully fixed service.nix
This commit is contained in:
@@ -85,6 +85,7 @@ in
|
||||
isNormalUser = true;
|
||||
createHome = true;
|
||||
home = cfg.dataDir;
|
||||
homeMode = cfg.permission;
|
||||
group = "eko";
|
||||
};
|
||||
|
||||
@@ -113,14 +114,12 @@ in
|
||||
Restart = "on-failure";
|
||||
RestartSec = "10s";
|
||||
|
||||
ExecStart = "/bin/sh -c 'ls && cd $HOME && ls && ${cfg.package}/bin/eko-server'";
|
||||
ExecStart = "/bin/sh -c '${cfg.package}/bin/eko-server'";
|
||||
ExecReload = "${pkgs.coreutils}/bin/kill -SIGHUP $MAINPID";
|
||||
|
||||
ConfigurationDirectory = "eko";
|
||||
# StateDirectory = "eko";
|
||||
# StateDirectoryMode = cfg.permission;
|
||||
# RuntimeDirectory = "eko";
|
||||
# RuntimeDirectoryMode = cfg.permission;
|
||||
StateDirectory = "eko";
|
||||
StateDirectoryMode = cfg.permission;
|
||||
LogsDirectory = "eko";
|
||||
WorkingDirectory = cfg.dataDir;
|
||||
Type = "simple";
|
||||
|
Reference in New Issue
Block a user