A Service for Nyanapsu to make it easier to operate the privileged actions.
This project includes two crates:
nyanpasu-ipc
a ipc bridge crate between the service and the client. It provide acreate_server
fn to hold a axum server, and provide ashortcuts
mod for swift client rpc call.- It use
named_pipe
in windows, andunix_socket
in unix-like system. - When install service, it should collect the users info (sid in windows, username in unix) for security.
- Grant ACL to the pipe (not done)
- When installing, add user to
nyanpasu
group, and grant the group to the pipe.
- It use
nyanpasu-service
it the main entrance of the service, it provide a control plane to manage the service, and provide arpc
subcommand to test the service.
Run with development preference:
cargo debug-run
Build with development preference:
cargo debug-build
View the service info:
./nyanpasu-service status # service status and health check(if running)
./nyanpasu-service version # build info only