Skip to content

Commit

Permalink
validator: update service failes
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-zaremba committed Dec 31, 2024
1 parent c63b3a0 commit 8872a0f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
8 changes: 5 additions & 3 deletions systemd/gonative.service → systemd/cosmovisord.service
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
[Unit]
Description=gonative Daemon
Description=Cosmovisor for a GoNative Node
After=network-online.target

[Service]
User=validator
ExecStart=$(which cosmovisor) run start
ExecStart=ExecStart=cosmovisor run start
Restart=always
RestartSec=6
RestartSec=10
LimitNOFILE=infinity
LimitNPROC=infinity
SyslogIdentifier=NativeNode

Environment="DAEMON_HOME=$HOME/.gonative"
Environment="DAEMON_NAME=gonative"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Expand Down
17 changes: 17 additions & 0 deletions systemd/gonatived.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[Unit]
Description=GoNative Node
After=network-online.target

[Service]
User=validator
ExecStart=ExecStart=/usr/local/bin/gonative start
Restart=always
RestartSec=10
LimitNOFILE=infinity
LimitNPROC=infinity
SyslogIdentifier=NativeNode

TimeoutStopSec=90

[Install]
WantedBy=multi-user.target
6 changes: 3 additions & 3 deletions validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ It monitors the governance module for incoming chain upgrade proposals. If it se

- [Docs](https://github.com/cosmos/cosmos-sdk/tree/main/tools/cosmovisor)
- See the Cosmos Hub [guide](https://hub.cosmos.network/main/hub-tutorials/join-mainnet#cosmovisor).
recommended setting - [systemd service file](./systemd/gonative.service)
recommended setting - [systemd cosmovisor service file](./systemd/cosmovisord.service) (or [systemd gonative service file](./systemd/gonatived.service) if you don't use cosmovisor)

Use the following commands to enable systemd service:

```sh
sudo systemctl daemon-reload
sudo systemctl enable gonative
sudo systemctl start gonative
sudo systemctl enable cosmovisord # or gonatived service
sudo systemctl start cosmovisord
```

To check logs you can use this command
Expand Down

0 comments on commit 8872a0f

Please sign in to comment.