Add sunrise Threads automation and improve capture and character interactions
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
[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
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Prepare daily sunrise capture at 03:00 Korea time
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 03:00:00 Asia/Seoul
|
||||
Persistent=true
|
||||
AccuracySec=1s
|
||||
Unit=sunrise-threads.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user