xiaoshu-legacy-sync.service 416 B

12345678910111213141516171819
  1. [Unit]
  2. Description=Xiaoshu legacy incremental sync worker
  3. After=network-online.target
  4. Wants=network-online.target
  5. [Service]
  6. Type=simple
  7. WorkingDirectory=/opt/xiaoshu-angular
  8. EnvironmentFile=/etc/xiaoshu/legacy-sync-worker.env
  9. ExecStart=/usr/bin/node scripts/run-legacy-sync-worker.mjs
  10. Restart=always
  11. RestartSec=3
  12. User=xiaoshu
  13. Group=xiaoshu
  14. NoNewPrivileges=true
  15. PrivateTmp=true
  16. [Install]
  17. WantedBy=multi-user.target