28 lines
762 B
Desktop File
28 lines
762 B
Desktop File
[Unit]
|
|
Description=AIOS persistent Online Agent worker availability guard
|
|
After=local-fs.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
User=root
|
|
Group=root
|
|
Environment=PYTHONUNBUFFERED=1
|
|
Environment=AIOS_WORKER_AVAILABILITY_MAX_STALE_SECONDS=90
|
|
Environment=AIOS_WORKER_AVAILABILITY_RESTART_COOLDOWN_SECONDS=60
|
|
ExecStart=/usr/bin/python3 -B /opt/aios/current/active-runtime/app/aios_worker_availability_guard.py --heal
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
LockPersonality=true
|
|
RestrictSUIDSGID=true
|
|
RestrictRealtime=true
|
|
RestrictNamespaces=true
|
|
MemoryDenyWriteExecute=true
|
|
RestrictAddressFamilies=AF_UNIX
|
|
ReadWritePaths=/run/aios-worker-availability
|
|
UMask=0022
|