xiaoshu-lesson-export.service 481 B

123456789101112131415161718192021
  1. [Unit]
  2. Description=Xiaoshu durable lesson history export worker
  3. After=network-online.target
  4. Wants=network-online.target
  5. [Service]
  6. Type=simple
  7. WorkingDirectory=/opt/xiaoshu-angular
  8. Environment=XIAOSHU_EXPORT_ENV_FILE=/etc/xiaoshu/lesson-export.env
  9. ExecStart=/usr/bin/node --max-old-space-size=512 scripts/lesson-export-worker.mjs
  10. Nice=10
  11. MemoryMax=1G
  12. Restart=always
  13. RestartSec=5
  14. User=xiaoshu
  15. Group=xiaoshu
  16. NoNewPrivileges=true
  17. PrivateTmp=true
  18. [Install]
  19. WantedBy=multi-user.target