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:
Vendored
+1
-1
@@ -7,7 +7,7 @@ Wants=network-online.target
|
||||
Type=simple
|
||||
User=sift
|
||||
Group=sift
|
||||
ExecStart=/usr/local/bin/sift -listen 127.0.0.1:8890 -config /etc/sift/config.toml
|
||||
ExecStart=/usr/local/bin/sift serve -listen 127.0.0.1:8890 -config /etc/sift/config.toml
|
||||
WorkingDirectory=/var/lib/sift
|
||||
Restart=on-failure
|
||||
RestartSec=5s
|
||||
|
||||
+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