packages.wenpai.net/deploy/ansible/roles/wppackages/templates/wppackages-check-status.service.j2
Ben Word 4f90dfc026
Add daily check-status sweep for closed/reopened packages (#84)
WordPress.org plugin/theme closures and re-openings are admin actions
with no SVN footprint, so the existing SVN-driven pipeline never
detects them. This adds a dedicated daily command that re-checks all
packages against the wp.org API and flips is_active accordingly.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 20:39:46 -05:00

13 lines
493 B
Django/Jinja

[Unit]
Description=WP Packages Check Status (detect closures and re-openings)
OnFailure=wppackages-pipeline-notify@%n.service
[Service]
Type=oneshot
User=deploy
Group=www-data
WorkingDirectory={{ app_root }}/current
ExecStart={{ app_root }}/current/{{ go_binary_name }} check-status --db {{ db_path }}
StandardOutput=append:{{ app_root }}/shared/storage/logs/check-status.log
StandardError=append:{{ app_root }}/shared/storage/logs/check-status.log
EnvironmentFile={{ app_root }}/shared/.env