mirror of https://github.com/statping/statping
Updated Linux (markdown)
parent
5994484efe
commit
e1e594f5b6
28
Linux.md
28
Linux.md
|
@ -5,6 +5,34 @@ bash <(curl -s https://statup.io/install.sh)
|
|||
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
|
||||
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'.
|
||||
|
||||
|
|
Loading…
Reference in New Issue