[Unit] Description=Live Status v4 - OpenClaw session watcher daemon Documentation=https://git.eeqj.de/ROOH/MATTERMOST_OPENCLAW_LIVESTATUS After=network.target [Service] Type=simple User=node WorkingDirectory=/opt/openclaw-live-status # Load environment variables from file EnvironmentFile=/etc/status-watcher.env # Start the watcher daemon directly (not via CLI wrapper) ExecStart=/usr/bin/node /opt/openclaw-live-status/src/watcher-manager.js start # Graceful shutdown — watcher handles SIGTERM (marks boxes interrupted, flushes) ExecStop=/bin/kill -TERM $MAINPID # Restart policy Restart=on-failure RestartSec=5s StartLimitBurst=3 StartLimitIntervalSec=60s # Logging — output goes to journald StandardOutput=journal StandardError=journal SyslogIdentifier=status-watcher # Security hardening NoNewPrivileges=true PrivateTmp=true [Install] WantedBy=multi-user.target