Updated Linux (markdown)

master
Hunter Long 2018-12-04 00:07:24 -08:00
parent 70f9713ebc
commit 2e9f17a079
1 changed files with 14 additions and 14 deletions

@ -2,13 +2,13 @@
Installing Statping on Linux is a 1 line command. It's that easy. Installing Statping on Linux is a 1 line command. It's that easy.
``` ```
bash <(curl -s https://assets.statup.io/install.sh) bash <(curl -s https://assets.statup.io/install.sh)
statup version statping version
``` ```
[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/statup) [![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/statping)
## Systemd Service ## Systemd Service
Setting up a systemd service is a great way to make sure your Statping server will automatically reboot when needed. You can use the file below for your service. You should have Statping already installed by this step. Setting up a systemd service is a great way to make sure your Statping server will automatically reboot when needed. You can use the file below for your service. You should have Statping already installed by this step.
###### /etc/systemd/system/statup.service ###### /etc/systemd/system/statping.service
``` ```
[Unit] [Unit]
Description=Statping Server Description=Statping Server
@ -19,7 +19,7 @@ After=network-online.target
[Service] [Service]
Type=simple Type=simple
Restart=always Restart=always
ExecStart=/usr/local/bin/statup ExecStart=/usr/local/bin/statping
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
@ -28,24 +28,24 @@ Then you can enable and start your systemd service with:
``` ```
systemctl daemon-reload systemctl daemon-reload
systemctl enable statup.service systemctl enable statping.service
systemctl start statup systemctl start statping
``` ```
You're Statping server will now automatically restart when your server restarts. You're Statping server will now automatically restart when your server restarts.
## Raspberry Pi ## Raspberry Pi
You can even run Statping 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 Statping on your Raspberry Pi by installing the precompiled binary from [Latest Releases](https://github.com/hunterlong/statping/releases/latest). For the Raspberry Pi 3 you'll want to download the `statping-linux-arm7.tar.gz` file. Be sure to change `VERSION` to the latest version in Releases, and include the 'v'.
``` ```
VERSION=$(curl -s "https://github.com/hunterlong/statup/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}') VERSION=$(curl -s "https://github.com/hunterlong/statping/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')
wget https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-arm7.tar.gz wget https://github.com/hunterlong/statping/releases/download/$VERSION/statping-linux-arm7.tar.gz
tar -xvzf statup-linux-arm7.tar.gz tar -xvzf statping-linux-arm7.tar.gz
chmod +x statup chmod +x statping
mv statup /usr/local/bin/statup mv statping /usr/local/bin/statping
statup version statping version
``` ```
## Alpine Linux ## Alpine Linux
The Docker image is using the Statping Alpine binary since it's so incredibly small. You can run it on your own alpine image by downloading `statup-linux-alpine.tar.gz` from [Latest Releases](https://github.com/hunterlong/statup/releases/latest). The Docker image is using the Statping Alpine binary since it's so incredibly small. You can run it on your own alpine image by downloading `statping-linux-alpine.tar.gz` from [Latest Releases](https://github.com/hunterlong/statping/releases/latest).