初始化奇妙小屏幕控制器项目
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
[Unit]
|
||||
Description=Temporary isolated animation thumbnail GPIO performance test
|
||||
After=NetworkManager.service
|
||||
Wants=NetworkManager.service
|
||||
Conflicts=matrix-screen-controller.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
WorkingDirectory=/var/tmp/matrix-screen-controller-preview-candidate-20260824/source
|
||||
Environment=MATRIX_DRIVER=auto
|
||||
Environment=MATRIX_DATA_DIR=/var/tmp/matrix-screen-controller-preview-perf-20260824
|
||||
Environment=MATRIX_RUNTIME_DIR=/run/matrix-screen-controller-preview-perf-20260824
|
||||
Environment=PYTHONDONTWRITEBYTECODE=1
|
||||
Environment=MATRIX_MEDIA_WORKER_MODE=inline
|
||||
RuntimeDirectory=matrix-screen-controller-preview-perf-20260824
|
||||
RuntimeDirectoryMode=0750
|
||||
RuntimeDirectoryPreserve=restart
|
||||
CPUAffinity=0 1 2
|
||||
LimitRTPRIO=50
|
||||
LimitMEMLOCK=infinity
|
||||
LimitRTTIME=infinity
|
||||
ExecStartPre=/bin/sh -c 'cat /proc/sys/kernel/sched_rt_runtime_us > /run/matrix-screen-controller-preview-perf-20260824/sched_rt_runtime_us.original && printf "%%s\n" -1 > /proc/sys/kernel/sched_rt_runtime_us'
|
||||
ExecStartPre=/var/tmp/matrix-screen-controller-preview-candidate-20260824/source/.venv/bin/python /var/tmp/matrix-screen-controller-preview-candidate-20260824/source/scripts/dedicated_host.py check --service
|
||||
ExecStartPre=/var/tmp/matrix-screen-controller-preview-candidate-20260824/source/app/display/native/hub75_safeoff
|
||||
ExecStart=/var/tmp/matrix-screen-controller-preview-candidate-20260824/source/.venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 18081
|
||||
ExecStopPost=/var/tmp/matrix-screen-controller-preview-candidate-20260824/source/app/display/native/hub75_safeoff
|
||||
ExecStopPost=/var/tmp/matrix-screen-controller-preview-candidate-20260824/source/.venv/bin/python -m app.system.performance restore --runtime-root /run/matrix-screen-controller-preview-perf-20260824
|
||||
ExecStopPost=/bin/sh -c 'if test -f /run/matrix-screen-controller-preview-perf-20260824/sched_rt_runtime_us.original; then cat /run/matrix-screen-controller-preview-perf-20260824/sched_rt_runtime_us.original > /proc/sys/kernel/sched_rt_runtime_us; rm -f /run/matrix-screen-controller-preview-perf-20260824/sched_rt_runtime_us.original; fi'
|
||||
Restart=no
|
||||
TimeoutStopSec=30
|
||||
|
||||
Reference in New Issue
Block a user