Files
aios/deploy/systemd/aios-governance-executor.service
T

38 lines
1.1 KiB
Desktop File

[Unit]
Description=AIOS Dedicated Governance Executor
After=aios-gitea.service network-online.target
Wants=network-online.target
ConditionPathExists=/etc/credstore.encrypted/gitea-governance-executor-token
ConditionPathExists=/usr/local/libexec/aios-governance-executor
[Service]
Type=simple
User=root
Group=gitops
LoadCredentialEncrypted=gitea-governance-executor-token:/etc/credstore.encrypted/gitea-governance-executor-token
ExecStart=/usr/local/libexec/aios-governance-executor
Restart=on-failure
RestartSec=3
NoNewPrivileges=true
PrivateTmp=true
ProtectHome=true
ProtectSystem=strict
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
IPAddressDeny=any
IPAddressAllow=127.0.0.1
RuntimeDirectory=aios-governance-executor
RuntimeDirectoryMode=0750
StateDirectory=aios-gitops/governance-executor
StateDirectoryMode=0750
ReadOnlyPaths=/usr/local/libexec /etc/credstore.encrypted
ReadWritePaths=/var/lib/aios-gitops/governance-executor /run/aios-governance-executor
UMask=0007
[Install]
WantedBy=multi-user.target