Overview

Placeholder: pinitd is a custom rootless init system for the Ai Pin that provides persistence (running on boot) and easy developer access to privileged roles. It exposes a similar API surface to systemd.

CLI Commands

Placeholder: The pinitd-cli utility provides the following commands:

CommandDescription
startStart a service
stopStop a service
restartRestart a service
enableEnable a service for autostart
disableDisable a service
reloadReload a service config from disk
reload-allReload all service configs
statusShow service status
configShow service configuration
listList all services
shutdownGraceful daemon shutdown

Service Configuration

Placeholder: Service configuration uses an INI unit file format with [Service] and [Unit] sections. Key properties include Name, Exec, Uid, SeInfo, Autostart, and Restart.

Troubleshooting

Placeholder: pinitd relies on CVE-2024-31317, which involves a race condition on Android 12+. Failures may cause Zygote to reset. Recovery steps for boot loops.

Source Code

pinitd is open source: github.com/PenumbraOS/pinitd