Update 2_installation.md

This commit is contained in:
Bi Phan 2023-01-05 16:58:42 -05:00 committed by GitHub
parent c50e020f42
commit 941d1dd272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,22 +14,17 @@ ufw limit ssh/tcp comment 'Rate limit for openssh server'
ufw default deny incoming
ufw default allow outgoing
ufw allow 26656/tcp comment 'JACKAL - Cosmos SDK/Tendermint P2P'
ufw allow 26657/tcp comment 'JACKAL - Cosmos SDK/Tendermint P2P'
ufw enable
```
### Create Jackal user
```sh
sudo adduser --gecos "" jackal
```
### Creating a Service
You may want the daemon to run without you needing to supervise it. To turn the executable into a service follow these steps.
First create the service file `/etc/systemd/system/jackal.service`
First create the service file `/etc/systemd/system/canined.service`
```sh
sudo nano /etc/systemd/system/jackal.service
sudo nano /etc/systemd/system/canined.service
```
Copy and paste the follow into the service file: (you may need to edit it if you've set a custom home directory location)
@ -61,7 +56,7 @@ sudo systemctl enable canined.service
## Building from Source
:::tip
Perform the next follow steps as your `jackal` user
Perform the next follow steps as your `jackal` user with 'sudo' permissions
:::
@ -78,4 +73,4 @@ make install
From there you will be able to use `canined`, ex:
```sh
canined version
```
```