Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

1.6 KB
Raw Blame
[Unit]
Description=ODS Pixel loopback workspace preview
After=openclaw-gateway.service
Requires=openclaw-gateway.service

[Service]
Type=simple
User=__PIXEL_SERVICE_USER__
Group=ods-pixel
ExecStart=/usr/bin/python3 /usr/local/libexec/ods-pixel-workspace-preview.py serve /run/ods-pixel-preview/control.sock "__PIXEL_WORKSPACE__" /var/lib/ods-pixel-preview __PIXEL_SERVICE_USER__ __PIXEL_PREVIEW_PORT__
Restart=on-failure
RestartSec=2
TimeoutStopSec=30
RuntimeDirectory=ods-pixel-preview
RuntimeDirectoryMode=0750
# Pixel Edge bind-mounts this directory. Preserve its inode across gateway
# stop/start so the container sees the replacement sockets. The server checks
# socket ownership and removes stale sockets itself; /run still clears on boot.
RuntimeDirectoryPreserve=yes
StateDirectory=ods-pixel-preview
StateDirectoryMode=0700
UMask=0077

NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=tmpfs
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
ProtectProc=invisible
ProcSubset=pid
PrivateMounts=true
BindReadOnlyPaths="__PIXEL_WORKSPACE__"
ReadOnlyPaths=/usr/local/libexec/ods-pixel-workspace-preview.py
ReadWritePaths=/run/ods-pixel-preview /var/lib/ods-pixel-preview
IPAddressDeny=any
IPAddressAllow=localhost
RemoveIPC=true
RestrictAddressFamilies=AF_UNIX AF_INET
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
LockPersonality=true
CapabilityBoundingSet=
AmbientCapabilities=
SystemCallArchitectures=native
MemoryMax=256M
TasksMax=32

[Install]
WantedBy=multi-user.target
WantedBy=openclaw-gateway.service