T-HUB/infra/peertube-workers/pt-worker
glass beadian aa5e262f3a Tactical Media Broadcast Hub — initial release
Self-hosted multi-platform broadcast newsroom for activist collectives:
publishing pipeline with group approval and DST-proof scheduling, TweetDeck-style
column wall with hostile-content-safe rendering, live control room with Auto
Director, bridged chat governance with polls and quorum, distributed sandboxed
transcode workers, encrypted content-addressed archive, monthly analytics.

MIT licensed. See README.md and docs/.
2026-10-10 11:56:42 +00:00

13 lines
580 B
Bash
Executable file

#!/bin/sh
set -eu
# Control files and GPU tests always run as the dedicated worker user.
if [ "$(id -u)" -eq 0 ]; then
case "${1:-}" in
start|restart) systemctl start pt-worker.service ;;
esac
exec runuser -u pt-worker -- env HOME=/var/lib/pt-worker \
PATH=/opt/pt-worker/node/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
PT_STATE_DIR=/var/lib/pt-worker/state PT_WORKER_CONFIG=/etc/pt-worker/worker.json \
/usr/bin/python3 /opt/pt-worker/pt-worker.py "$@"
fi
exec /usr/bin/python3 /opt/pt-worker/pt-worker.py "$@"