feat: establish Kezhou independent resident agent
This commit is contained in:
commit
758187beed
7 changed files with 117 additions and 0 deletions
23
systemd/kezhou-daily.service
Normal file
23
systemd/kezhou-daily.service
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
[Unit]
|
||||
Description=Kezhou ICE-GL-KZ-001 daily check and Lake Heart reply
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
User=kezhou
|
||||
Group=kezhou
|
||||
WorkingDirectory=/opt/kezhou/agent
|
||||
EnvironmentFile=-/etc/guanghu/persona-secrets/shared-deepseek.env
|
||||
Environment=KEZHOU_REPO=/var/lib/guanghu/personas/kezhou/repository
|
||||
Environment=KEZHOU_STATE=/var/lib/guanghu/personas/kezhou/state.json
|
||||
ExecStart=/usr/bin/python3 /opt/kezhou/agent/kezhou_daily.py
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadOnlyPaths=/opt/kezhou/agent /etc/guanghu/persona-secrets
|
||||
ReadWritePaths=/var/lib/guanghu/personas/kezhou
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
11
systemd/kezhou-daily.timer
Normal file
11
systemd/kezhou-daily.timer
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
[Unit]
|
||||
Description=Kezhou daily continuity checks
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 08:00:00 Asia/Shanghai
|
||||
OnCalendar=*-*-* 20:00:00 Asia/Shanghai
|
||||
Persistent=true
|
||||
RandomizedDelaySec=180
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Loading…
Reference in a new issue