xiaoshu-lesson-export.service 435 B

12345678910111213141516171819
  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 scripts/lesson-export-worker.mjs
  10. Restart=always
  11. RestartSec=5
  12. User=xiaoshu
  13. Group=xiaoshu
  14. NoNewPrivileges=true
  15. PrivateTmp=true
  16. [Install]
  17. WantedBy=multi-user.target