23 lines
464 B
Desktop File
23 lines
464 B
Desktop File
[Unit]
|
|
Description=画个标素材 API
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=ubuntu
|
|
Group=ubuntu
|
|
WorkingDirectory=/opt/drawlogo-api
|
|
ExecStart=/usr/bin/node --max-old-space-size=384 server.js
|
|
Restart=always
|
|
RestartSec=5
|
|
Environment=NODE_ENV=production
|
|
# 限制内存,避免索引服务挤占同机其他项目
|
|
MemoryMax=900M
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=full
|
|
ReadWritePaths=/opt/drawlogo-api
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|