release: public alpha 0.6.0 baseline
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Project JWeBot edge memory to cloud workspace
|
||||
After=jwebot-edge.service
|
||||
Wants=jwebot-edge.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=-%h/.config/jwebot/current/generated/runtime.env
|
||||
ExecStart=/opt/jwebot/venv/bin/python %h/.local/lib/wechat-health-watch/jwebot_edge.py sync-memory
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
UMask=0077
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Synchronize JWeBot edge memory every three days
|
||||
|
||||
[Timer]
|
||||
OnBootSec=15min
|
||||
OnUnitActiveSec=3d
|
||||
Persistent=true
|
||||
Unit=jwebot-edge-memory-sync.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,18 @@
|
||||
[Unit]
|
||||
Description=JWeBot local edge router and event ledger
|
||||
After=default.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=-%h/.config/jwebot/current/generated/runtime.env
|
||||
ExecStart=/opt/jwebot/venv/bin/python %h/.local/lib/wechat-health-watch/jwebot_edge.py serve
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
UMask=0077
|
||||
MemoryMax=256M
|
||||
CPUQuota=100%
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=WeChat GUI automation health monitor
|
||||
After=default.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=-%h/.config/jwebot/current/generated/runtime.env
|
||||
ExecStart=%h/.local/lib/wechat-health-watch/wechat_health_watch.py
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
UMask=0077
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Run WeChat GUI automation health monitor every minute
|
||||
|
||||
[Timer]
|
||||
OnBootSec=45s
|
||||
OnUnitActiveSec=60s
|
||||
Persistent=true
|
||||
Unit=wechat-health-watch.service
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
@@ -0,0 +1,21 @@
|
||||
[Unit]
|
||||
Description=Adaptive local WeChat OCR recorder and responder
|
||||
After=default.target jwebot-edge.service
|
||||
Wants=jwebot-edge.service
|
||||
StartLimitIntervalSec=300
|
||||
StartLimitBurst=6
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
EnvironmentFile=-%h/.config/jwebot/current/generated/runtime.env
|
||||
ExecStart=/opt/jwebot/venv/bin/python %h/.local/lib/wechat-health-watch/wechat_adaptive_recorder.py
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
UMask=0077
|
||||
MemoryMax=768M
|
||||
CPUQuota=250%
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user