scripts: add auth management and Termux widget scripts
This commit is contained in:
committed by
Peter Steinberger
parent
8f21f34b1c
commit
6484195bfe
14
scripts/systemd/clawdbot-auth-monitor.service
Normal file
14
scripts/systemd/clawdbot-auth-monitor.service
Normal file
@@ -0,0 +1,14 @@
|
||||
[Unit]
|
||||
Description=Clawdbot Auth Expiry Monitor
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/home/admin/clawdbot/scripts/auth-monitor.sh
|
||||
# Configure notification channels via environment
|
||||
Environment=WARN_HOURS=2
|
||||
# Environment=NOTIFY_PHONE=+1234567890
|
||||
# Environment=NOTIFY_NTFY=clawdbot-alerts
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
10
scripts/systemd/clawdbot-auth-monitor.timer
Normal file
10
scripts/systemd/clawdbot-auth-monitor.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Check Clawdbot auth expiry every 30 minutes
|
||||
|
||||
[Timer]
|
||||
OnBootSec=5min
|
||||
OnUnitActiveSec=30min
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user