22 lines
591 B
Desktop File
22 lines
591 B
Desktop File
[Unit]
|
|
Description=CodeWhale Runtime API
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=codewhale
|
|
Group=codewhale
|
|
WorkingDirectory=/opt/whalebro
|
|
EnvironmentFile=/etc/deepseek/runtime.env
|
|
ExecStart=/home/codewhale/.cargo/bin/codewhale serve --http --host 127.0.0.1 --port ${DEEPSEEK_RUNTIME_PORT} --workers ${DEEPSEEK_RUNTIME_WORKERS} --auth-token ${DEEPSEEK_RUNTIME_TOKEN}
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
ReadWritePaths=/home/codewhale/.deepseek /opt/whalebro
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|