T06 · System Persistence
- Location
scripts/post-install.sh:62- Finding
Default installation registers a persistent background worker
- Content
View full analysis
"$service_file" <> \"$AIRILAB_HOME/scheduler/autostart.log\" 2>&1" existing="$(crontab -l 2>/dev/null | grep -F "$SKILL_DIR/scripts/start-worker.sh" || true)" if [ -z "$existing" ]; then (crontab -l 2>/dev/null; echo "$cron_line") | crontab - fi } ``` The standalone installer provides an additional persistence path: ```bash EXISTING=$(crontab -l 2>/dev/null | grep -F "start-worker.sh" || true) if [ -n "$EXISTING" ]; then echo "Autostart is already configured" else (crontab -l 2>/dev/null | grep -v '^#'; echo "$CRON_ENTRY") | crontab - fi ``` ### Technical Analysis The documented post-installation process enables autostart by default. It creates and immediately starts a systemd user service with `Restart=always`, or falls back to installing a `cron @reboot` entry. Both mechanisms survive the Skill invocation and future user sessions. The service executes Python cod ...[truncated 1884 chars]- Remediation
View remediation
