# systemd unit para tcef-notifications en shiva (o servidor limpio, fase 3). # Requiere Node 22 standalone (NO el Node 8 del sistema) y Redis local. # # sudo cp deploy/tcef-notifications.service /etc/systemd/system/ # sudo systemctl daemon-reload # sudo systemctl enable --now tcef-notifications # journalctl -u tcef-notifications -f # # El EnvironmentFile lleva los SECRETOS (Mongo, MAIL_URL, ruta al service # account de Firebase) — permisos 600, fuera de git, desde tcef-private-config. [Unit] Description=tcef-notifications (FCM v1 + email sender) After=network-online.target redis-server.service Wants=network-online.target [Service] Type=simple User=incinera WorkingDirectory=/opt/tcef-notifications EnvironmentFile=/opt/tcef-notifications/secrets/tcef-notifications.env # Ajusta la ruta al Node 22 standalone instalado en shiva: ExecStart=/opt/node22/bin/node --enable-source-maps dist/index.js Restart=on-failure RestartSec=5 # Kill switch de emergencia sin editar la env: systemctl stop tcef-notifications KillSignal=SIGTERM TimeoutStopSec=30 [Install] WantedBy=multi-user.target