You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2026. It is now read-only.
The pg-notify-listener.py script listens for PostgreSQL schema_changed and gambling_changed notifications and auto-syncs schema changes to GitHub. Currently it runs as a bare nohup process and uses hardcoded absolute paths.
Problems
No systemd service — runs as nohup background process, won't survive reboots
Hardcoded paths — was using /home/nova/clawd/... paths (partially fixed to use OPENCLAW_WORKSPACE env var, but should be fully validated)
Root-owned log file — /home/nova/.openclaw/workspace/logs/pg-notify-listener.log is owned by root, preventing the listener from writing to it
Required Changes
1. Create systemd user service
~/.config/systemd/user/pg-notify-listener.service
Restart=always with appropriate RestartSec
Set OPENCLAW_WORKSPACE env var in the service file
Enable on boot: systemctl --user enable pg-notify-listener
2. Ensure relative pathing
All paths should derive from OPENCLAW_WORKSPACE env var or script location
Summary
The
pg-notify-listener.pyscript listens for PostgreSQLschema_changedandgambling_changednotifications and auto-syncs schema changes to GitHub. Currently it runs as a barenohupprocess and uses hardcoded absolute paths.Problems
nohupbackground process, won't survive reboots/home/nova/clawd/...paths (partially fixed to useOPENCLAW_WORKSPACEenv var, but should be fully validated)/home/nova/.openclaw/workspace/logs/pg-notify-listener.logis owned by root, preventing the listener from writing to itRequired Changes
1. Create systemd user service
~/.config/systemd/user/pg-notify-listener.serviceRestart=alwayswith appropriateRestartSecOPENCLAW_WORKSPACEenv var in the service filesystemctl --user enable pg-notify-listener2. Ensure relative pathing
OPENCLAW_WORKSPACEenv var or script location/home/nova/pathsWORKSPACE,SCRIPTS_DIR,NOVA_MEMORY_DIRalready updated~/www/static/gambling/— may need env var too3. Fix log file ownership
Notes
~/.openclaw/workspace/scripts/pg-notify-listener.py— workspace tooling, not tracked in reposchema.sql— this script just keeps it currentOPENCLAW_WORKSPACEon 2026-02-25