Add editable weather captions and manage Threads scheduling with PM2
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=Capture sunrise and publish to Threads
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
StartLimitIntervalSec=1h
|
||||
StartLimitBurst=5
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=sunrise
|
||||
WorkingDirectory=/opt/sunrise
|
||||
ExecStart=/usr/bin/node /opt/sunrise/server/threads/run.ts
|
||||
TimeoutStartSec=8h
|
||||
Restart=on-failure
|
||||
RestartSec=60s
|
||||
UMask=0022
|
||||
Reference in New Issue
Block a user