23 lines
465 B
Plaintext
23 lines
465 B
Plaintext
# P1 pinned model proxy. The runner checks PIN before spawning the executable.
|
|
[Unit]
|
|
Description=Mosaic model proxy
|
|
StartLimitIntervalSec=600
|
|
StartLimitBurst=5
|
|
|
|
[Service]
|
|
Type=simple
|
|
WorkingDirectory=@REPO@
|
|
Environment=PATH=@PATH@
|
|
@CONFIG_ENV@
|
|
ExecStart=@NODE@ @REPO@/packages/model-proxy/src/run.mjs
|
|
Restart=on-failure
|
|
RestartSec=15
|
|
RestartPreventExitStatus=2 3 4
|
|
UMask=0077
|
|
NoNewPrivileges=yes
|
|
KillMode=mixed
|
|
TimeoutStopSec=60
|
|
|
|
[Install]
|
|
WantedBy=default.target
|