invinservicedemon is a Rust application designed for monitoring and managing system services. It provides a service checking mechanism to inspect the status of various services on the system.
- Periodically checks the status of system services.
- Logs service status information.
To compile and run the application, follow these steps:
- Ensure you have Rust installed. You can install it from rustup.
- Clone the repository to your local machine.
- Navigate to the project directory.
- Build the application using Cargo:
cargo build --release
- Strip debug symbols from the binary:
strip -s target/release/invinservicedemon
- Run the application:
cargo run
By default, the application will periodically check the status of system services and log the information.
You can customize the output of the application by modifying the logging configuration. By default, it outputs log messages with a severity level of "info" or higher. You can adjust the log level or change the output destination according to your preferences.
- Cleaning: To clean up the project directory, removing build artifacts, you can use the following command:
cargo clean
- Creating Debian Package: To create a Debian package (.deb) from the Cargo project, you can use
cargo deb
:
cargo deb
- Creating Binary RPM Package: To generate a binary RPM package (.rpm) from the Cargo project, you can use
cargo generate-rpm
:
cargo generate-rpm
cargo build --release && strip -s target/release/invinservicedemon && cargo deb && cargo generate-rpm
Please ensure to strip debug symbols and build the release version (--release
) before generating packages.
env_logger
: Logging implementation in Rust.serde_json
: JSON serialization and deserialization.tokio
: Asynchronous runtime for Rust.log
: Logging facade for Rust applications.
You can install the cargo-deb
and cargo-generate-rpm
tools to generate Debian and RPM packages from your Cargo project.
cargo install cargo-deb
cargo install cargo-generate-rpm