mirror of
https://github.com/YGGverse/rssto.git
synced 2026-03-31 17:15:29 +00:00
1.6 KiB
1.6 KiB
rssto-crawler
Install
git clone https://github.com/YGGverse/rssto.git
cd rssto
cargo build --release
Launch
rssto-crawler -c config/example.toml
Tip
- prepend
RUST_LOG=rssto_crawler=traceto print worker details (supported levels)
- or just
RUST_LOG=traceto debug all components in use- append
-u TIMEto run as the daemon withTIMEinterval update- see
rssto-crawler --helpto print all available options
Systemd
- Install
rssto-crawlerby copy the binary compiled into the native system apps destination:- Linux:
sudo install target/release/rssto-crawler /usr/local/bin/rssto-crawler
- Linux:
- Create
systemdconfiguration file at/etc/systemd/system/rssto-crawler.service:
[Unit]
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=rssto
Group=rssto
# Uncomment for debug
# Environment="RUST_LOG=rssto_crawler=debug"
# Environment="NO_COLOR=1"
ExecStart=/usr/local/bin/rssto-crawler -c /path/to/config.toml
StandardOutput=file:///home/rssto/crawler-debug.log
StandardError=file:///home/rssto/crawler-error.log
[Install]
WantedBy=multi-user.target
- example above requires new system user (
useradd -m rssto)
- Run in priority:
systemctl daemon-reload- reload systemd configurationsystemctl enable rssto-crawler- enable new servicesystemctl start rssto-crawler- start the processsystemctl status rssto-crawler- check process launched