Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ivanitskiy/systemd-watch-example-rs
https://github.com/ivanitskiy/systemd-watch-example-rs
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ivanitskiy/systemd-watch-example-rs
- Owner: ivanitskiy
- Created: 2021-12-17T20:40:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-17T23:11:37.000Z (about 3 years ago)
- Last Synced: 2024-10-28T02:07:25.550Z (about 2 months ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is an example how to work systemd logs with rust on linux
Install the following packages to allow `systemd` crate able to load libsystemd:
sudo apt install pkg-config libsystemd-dev
Refer to [rust-systemd](https://github.com/jmesmon/rust-systemd) documentation for more details.
How to test:
you can run the program via `cargo run`, open another terminal and watch events. e.g. run `docker ps`