---
# System prepended metadata

title: Lukso Validator Service (Auto-Restart) Community Guide

---

# Lukso Validator Service (Auto-Restart) Community Guide

> **_Disclaimer_**
This article (the guide) is for informational purposes only and does not constitute professional advice. The author does not guarantee accuracy of the information in this article and the author is not responsible for any damages or losses incurred by following this article. A full disclaimer can be found at the bottom of this page — please read it before continuing.

For your LUKSO mainnet node to auto-restart during a reboot and maximize precious uptime, we need to make a systemd service which will execute your user on your behalf. Just follow these steps and you'll be good to go.

- Make the lukso.service file, please note that it'll need to have root privileges:

`sudo nano /usr/lib/systemd/system/lukso.service`

- Copy the following content to it:

```
[Unit]
Description=Lukso Validator Service
Wants=network-online.target
After=network-online.target

[Service]
User=YOURUSERNAME
Group=YOURUSERNAME
Type=oneshot
RemainAfterExit=yes
WorkingDirectory=/home/YOURUSERNAME/myLUKSOnode
ExecStart=/usr/local/bin/lukso start \
        --validator \
        --genesis-json ./configs/mainnet/shared/genesis_42.json \
        --genesis-ssz ./configs/mainnet/shared/genesis_42.ssz \
        --validator-wallet-password ./validator-password \
        --transaction-fee-recipient "0x...YOURWALLETADDRESS"
ExecStop=/usr/local/bin/lukso stop

[Install]
WantedBy=multi-user.target
```

- Make the validator-password file in your working directory:

`sudo nano /home/YOURUSERNAME/myLUKSOnode/validator-password`

- Change it to read only and revert ownership back to your user instead of root:

```
sudo chmod 400 /home/YOURUSERNAME/myLUKSOnode/validator-password
sudo chown -R YOURUSERNAME:YOURUSERNAME /home/YOURUSERNAME/myLUKSOnode/validator-password
```

- Rebuild daemon, start the service and enable it to restart:

```
sudo systemctl daemon-reload
sudo systemctl start lukso.service
sudo systemctl enable lukso.service
```
Finally check status:

`sudo systemctl status lukso.service`

You should get this output after a successful reboot:

```
● lukso.service - Lukso Validator Service
     Loaded: loaded (/lib/systemd/system/lukso.service; enabled; vendor preset: enabled)
     Active: active (exited) since Thu 2023-06-01 19:59:33 +04; 5min ago
    Process: 2425 ExecStart=/usr/local/bin/lukso start --validator --genesis-json ./configs/mainnet/shared/genesis_42.json --genesis-ssz ./configs/mainnet/shared/genesis_42.ssz --validator-wallet>   Main PID: 2425 (code=exited, status=0/SUCCESS)
      Tasks: 68 (limit: 76571)
     Memory: 944.8M
        CPU: 1min 35.055s
     CGroup: /system.slice/lukso.service
             ├─2521 geth --config=./configs/mainnet/geth/geth.toml
             ├─2554 prysm --log-file=./mainnet-logs/prysm_2023-06-01_19-59-21.log --accept-terms-of-use --config-file=./configs/mainnet/prysm/prysm.yaml --suggested-fee-recipient=0x...>
             └─2678 validator --accept-terms-of-use --config-file=./configs/mainnet/prysm/validator.yaml --log-file=./mainnet-logs/validator_2023-06-01_19-59-22.log --suggested-fee-recipient=0x...>
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info msg="✅  Validator started! Use 'lukso logs validator' to see the logs."
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info msg="🎉  Clients have been started. Checking status:"
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info msg="PID 2521 - Execution (geth): Running 🟢"
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info msg="PID 2554 - Consensus (prysm): Running 🟢"
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info msg="PID 2678 - Validator (validator): Running 🟢"
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info msg="If execution and consensus clients are Running 🟢, your node is now 🆙."
Jun 01 19:59:33 myLUKSOnode lukso[2425]: time="2023-06-01T19:59:33+04:00" level=info msg="👉 Please check the logs with 'lukso logs' to make sure everything is running correctly."
Jun 01 19:59:33 myLUKSOnode systemd[1]: Finished Lukso Validator Service.
```

> **_Full Disclaimer_**
This article (the guide) is for informational purposes only and does not constitute professional advice. The author does not warrant or guarantee the accuracy, integrity, quality, completeness, currency, or validity of any information in this article. All information herein is provided “as is” without warranty of any kind and is subject to change at any time without notice. The author disclaims all express, implied, and statutory warranties of any kind, including warranties as to accuracy, timeliness, completeness, or fitness of the information in this article for any particular purpose. The author is not responsible for any direct, indirect, incidental, consequential or any other damages arising out of or in connection with the use of this article or in reliance on the information available on this article. This includes any personal injury, business interruption, loss of use, lost data, lost profits, or any other pecuniary loss, whether in an action of contract, negligence, or other misuse, even if the author has been informed of the possibility.

## Credits

- https://github.com/lykhonis
- https://github.com/blitmore
- https://github.com/JohnnyEBD-LYX