Build the mistralrs binary (CLI) instead of the deprecated mistralrs-server. The RPM still installs as /usr/bin/mistralrs-server for backwards compatibility. The systemd unit now invokes `mistralrs-server serve` to use the CLI's serve subcommand. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
622 B
Desktop File
30 lines
622 B
Desktop File
[Unit]
|
|
Description=mistral.rs inference server (@FLAVOUR@, instance %i)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=mistralrs
|
|
Group=mistralrs
|
|
SupplementaryGroups=video render
|
|
EnvironmentFile=/etc/mistralrs/%i.conf
|
|
ExecStart=@BINARY@ serve $MISTRALRS_ARGS
|
|
Restart=on-failure
|
|
RestartSec=10s
|
|
|
|
NoNewPrivileges=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
ReadWritePaths=/var/lib/mistralrs /var/cache/mistralrs
|
|
PrivateTmp=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
ProtectControlGroups=yes
|
|
|
|
StateDirectory=mistralrs
|
|
CacheDirectory=mistralrs
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|