Purpose
Provide the same service-management surface on all supported platforms while keeping platform-specific implementation details isolated.
CLI Surface
rustinel service install
rustinel service uninstall
rustinel service start
rustinel service stop
rustinel service restart
rustinel service status
Scope
- Add a shared internal service backend interface.
- Preserve and improve the Windows Service Control Manager implementation.
- Add Linux systemd support.
- Add macOS launchd system daemon support.
- Add
restart and status.
- Use canonical managed binary and configuration paths.
- Validate that required files exist before service installation.
- Make install and uninstall idempotent.
- Keep platform-specific code isolated.
Service Install Requirements
- Register the native service definition.
- Use the managed binary and managed configuration paths.
- Avoid downloading rules.
- Avoid overwriting user configuration.
- Avoid silently copying an executable from a temporary or downloads directory.
Service Uninstall Requirements
- Stop and unregister the service.
- Preserve configuration, rules, logs, and state by default.
- Avoid acting as a full data-purge command.
Normalized Status Values
not-installed
stopped
starting
running
failed
unknown
Acceptance Criteria
Dependencies
Priority
P0
Purpose
Provide the same service-management surface on all supported platforms while keeping platform-specific implementation details isolated.
CLI Surface
Scope
restartandstatus.Service Install Requirements
Service Uninstall Requirements
Normalized Status Values
Acceptance Criteria
installdoes not download rules or overwrite configuration.uninstallpreserves user data.statusreports meaningful normalized states.Dependencies
Priority
P0