| 123456789101112131415161718192021 |
- [Unit]
- Description=Xiaoshu durable lesson history export worker
- After=network-online.target
- Wants=network-online.target
- [Service]
- Type=simple
- WorkingDirectory=/opt/xiaoshu-angular
- Environment=XIAOSHU_EXPORT_ENV_FILE=/etc/xiaoshu/lesson-export.env
- ExecStart=/usr/bin/node --max-old-space-size=512 scripts/lesson-export-worker.mjs
- Nice=10
- MemoryMax=1G
- Restart=always
- RestartSec=5
- User=xiaoshu
- Group=xiaoshu
- NoNewPrivileges=true
- PrivateTmp=true
- [Install]
- WantedBy=multi-user.target
|