Updated Linux (markdown)

master
Hunter Long 2018-06-25 19:56:38 -07:00
parent 5994484efe
commit e1e594f5b6
1 changed files with 28 additions and 0 deletions

@ -5,6 +5,34 @@ bash <(curl -s https://statup.io/install.sh)
statup version statup version
``` ```
## Systemd Service
Setting up a systemd service is a great way to make sure your Statup server will automatically reboot when needed. You can use the file below for your service.
###### /etc/systemd/system/statup.service
```
[Unit]
Description=Statup Server
After=network.target
After=systemd-user-sessions.service
After=network-online.target
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/statup
[Install]
WantedBy=multi-user.target
```
Then you can enable and start your systemd service with:
```
systemctl daemon-reload
systemctl enable statup.service
systemctl start statup
```
You're Statup server will now automatically restart when your server restarts.
## Raspberry Pi ## Raspberry Pi
You can even run Statup on your Raspberry Pi by installing the precompiled binary from [Latest Releases](https://github.com/hunterlong/statup/releases/latest). For the Raspberry Pi 3 you'll want to download the `statup-linux-arm7.tar.gz` file. Be sure to change `VERSION` to the latest version in Releases, and include the 'v'. You can even run Statup on your Raspberry Pi by installing the precompiled binary from [Latest Releases](https://github.com/hunterlong/statup/releases/latest). For the Raspberry Pi 3 you'll want to download the `statup-linux-arm7.tar.gz` file. Be sure to change `VERSION` to the latest version in Releases, and include the 'v'.