38 lines
801 B
Desktop File
38 lines
801 B
Desktop File
[Unit]
|
|
Description=AIOS V2 Control Plane Candidate
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=aios
|
|
Group=aios
|
|
WorkingDirectory=/opt/aios/current/active-runtime/app
|
|
EnvironmentFile=-/etc/aios-v2/aios-v2.env
|
|
Environment=PYTHONUNBUFFERED=1
|
|
ExecStart=/usr/bin/python3 -m aios_v2.app
|
|
Restart=on-failure
|
|
RestartSec=3
|
|
TimeoutStartSec=30
|
|
TimeoutStopSec=30
|
|
KillSignal=SIGTERM
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
RestrictSUIDSGID=true
|
|
RestrictRealtime=true
|
|
LockPersonality=true
|
|
MemoryDenyWriteExecute=true
|
|
ReadWritePaths=/var/lib/aios-v2
|
|
StateDirectory=aios-v2
|
|
StateDirectoryMode=0750
|
|
UMask=0027
|
|
LimitNOFILE=65536
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|