Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.13 KB

README.md

File metadata and controls

38 lines (25 loc) · 1.13 KB

Nyanapsu Service

A Service for Nyanapsu to make it easier to operate the privileged actions.

Relations

relation

This project includes two crates:

  • nyanpasu-ipc a ipc bridge crate between the service and the client. It provide a create_server fn to hold a axum server, and provide a shortcuts mod for swift client rpc call.
    • It use named_pipe in windows, and unix_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.
  • nyanpasu-service it the main entrance of the service, it provide a control plane to manage the service, and provide a rpc subcommand to test the service.

Development

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