[Unit] Description=SEO Insight — provisioning des partitions GSC (audit P4; one-shot, run by seo-insight-gsc-partitions.timer) After=network.target postgresql.service Wants=postgresql.service [Service] # One-shot: crée les partitions manquantes de gsc_query_snapshots / # gsc_page_snapshots pour les GSC_PARTITION_MONTHS_AHEAD prochains mois puis # vérifie le canari DEFAULT — voir docs/project/ops/gsc-partitions.md. # Triggered périodiquement par seo-insight-gsc-partitions.timer — pas un # daemon, donc pas de Restart= ici et pas de [Install] (le timer possède la # planification ; activer ce .service directement ne le lancerait qu'une # fois au boot). Type=oneshot User=seoinsight Group=seoinsight WorkingDirectory=/opt/seo-insight EnvironmentFile=/opt/seo-insight/.env.production # Horizon de provisioning en mois (défaut du script = 6 si absent ici). # Environment=GSC_PARTITION_MONTHS_AHEAD=6 ExecStart=/home/seoinsight/.bun/bin/bun --conditions=react-server run scripts/gsc-ensure-partitions.ts NoNewPrivileges=true ProtectSystem=full PrivateTmp=true