p1: ExecStart must invoke sift serve
P1 split the binary into subcommands. Without `serve`, the unit exits 2 on `unknown command`.
This commit is contained in:
+1
-1
@@ -99,7 +99,7 @@ in
|
||||
Type = "simple";
|
||||
User = "sift";
|
||||
Group = "sift";
|
||||
ExecStart = "${lib.getExe cfg.package} -listen ${cfg.listen} -config /etc/sift/config.toml"
|
||||
ExecStart = "${lib.getExe cfg.package} serve -listen ${cfg.listen} -config /etc/sift/config.toml"
|
||||
+ lib.concatMapStrings (p: " -deny-prefix ${lib.escapeShellArg p}") cfg.denyPrefixes;
|
||||
WorkingDirectory = "/var/lib/sift";
|
||||
Restart = "on-failure";
|
||||
|
||||
Reference in New Issue
Block a user