23 lines
491 B
Desktop File
23 lines
491 B
Desktop File
[Unit]
|
|
Description=Sunrise Threads daily capture and publishing worker
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
StartLimitIntervalSec=0
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=sunrise
|
|
WorkingDirectory=/opt/sunrise
|
|
Environment=NODE_ENV=production
|
|
Environment=TZ=Asia/Seoul
|
|
Environment=HOME=/home/sunrise
|
|
ExecStart=/usr/bin/node /opt/sunrise/server/threads/worker.ts
|
|
Restart=on-failure
|
|
RestartSec=60
|
|
TimeoutStopSec=15
|
|
KillMode=control-group
|
|
UMask=0022
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|