Files
sift/dist/sift.service
kyle fac1462e7b p1: ExecStart must invoke sift serve
P1 split the binary into subcommands. Without `serve`, the unit exits 2
on `unknown command`.
2026-09-22 22:11:28 -07:00

43 lines
955 B
Desktop File

[Unit]
Description=sift LLM-oriented fetch and search
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=sift
Group=sift
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
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
ProtectHostname=true
ProtectClock=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
LockPersonality=true
MemoryDenyWriteExecute=true
MemoryMax=512M
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged
CapabilityBoundingSet=
AmbientCapabilities=
ReadWritePaths=/var/lib/sift
ConfigurationDirectory=sift
StateDirectory=sift
[Install]
WantedBy=multi-user.target