mirror of
https://github.com/YGGverse/pulsarss.git
synced 2026-03-31 17:15:29 +00:00
update error handle, change version
This commit is contained in:
parent
502a099103
commit
27a418e256
6 changed files with 46 additions and 81 deletions
24
README.md
24
README.md
|
|
@ -25,15 +25,9 @@ pulsarss --source https://path/to/feed.rss --index index.gmi
|
|||
|
||||
### Options
|
||||
|
||||
* `source`, `s` - RSS feed source (required)
|
||||
* `target`, `t` - Destination directory (`public` by default)
|
||||
* `update`, `u` - Update timeout in seconds (`60` by default)
|
||||
* `index`, `i` - Generate index files with given filename (disabled by default)
|
||||
* `limit`, `l` - Limit channel items (unlimited by default)
|
||||
* `output`, `o` - Print output (`dw` by default):
|
||||
* `d` - debug
|
||||
* `w` - warning
|
||||
* `n` - disable
|
||||
``` bash
|
||||
pulsarss --help
|
||||
```
|
||||
|
||||
### Autostart
|
||||
|
||||
|
|
@ -41,7 +35,7 @@ pulsarss --source https://path/to/feed.rss --index index.gmi
|
|||
|
||||
1. Install `pulsarss` by copy the binary compiled into the native system apps destination:
|
||||
|
||||
* Linux: `sudo cp /home/user/.cargo/bin/pulsarss /usr/local/bin`
|
||||
* Linux: `sudo install /home/user/.cargo/bin/pulsarss /usr/local/bin/pulsarss`
|
||||
|
||||
2. Create `systemd` configuration file:
|
||||
|
||||
|
|
@ -54,13 +48,23 @@ Wants=network-online.target
|
|||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
User=pulsarss
|
||||
Group=pulsarss
|
||||
|
||||
# Uncomment for debug
|
||||
# Environment="RUST_LOG=debug"
|
||||
# Environment="NO_COLOR=1"
|
||||
|
||||
ExecStart=/usr/local/bin/pulsarss -s https://path/to/feed.rss -i index.gmi
|
||||
|
||||
StandardOutput=file:///home/pulsarss/debug.log
|
||||
StandardError=file:///home/pulsarss/error.log
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
* example above requires new system user (`useradd -m pulsarss`)
|
||||
|
||||
3. Run in priority:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue