33 lines
633 B
Markdown
33 lines
633 B
Markdown
# PastafariStats, a simple collector for basic stats.
|
|
|
|
## Installation
|
|
|
|
You can install PastafariStats with its command.
|
|
|
|
`pip3 install git+https://bitbucket.org/paramecio/pastafaristats`
|
|
|
|
### Add systemd service
|
|
|
|
If your linux distro use systemd, you can initialize the script with this systemd unit
|
|
|
|
```
|
|
# Save it in /etc/systemd/system/pastafaristats.service
|
|
|
|
[Unit]
|
|
Description=Pastafari Stats
|
|
After=syslog.target
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=pzoo
|
|
Group=pzoo
|
|
WorkingDirectory=/home/pzoo
|
|
ExecStart=pastafaristats
|
|
Restart=always
|
|
Environment=USER=pzoo HOME=/home/pzoo
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
```
|
|
|