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