# You need only to add that file to /etc/systemd/system/nodeos.service
# In that example nodeos is installed in that folder : /home/nodeos/.local/share/eosio/nodeos
# And execute that commands :
# sudo chmod +x /etc/systemd/system/nodeos.service
# sudo systemctl start nodeos
# sudo systemctl enable nodeos
[Unit]
Description=nodeos
After=network.target
[Service]
WorkingDirectory=/home/nodeos/.local/share/eosio/nodeos
User=nodeos
Type=simple
ExecStart=/usr/bin/nodeos
SuccessExitStatus=143
KillMode=mixed
StandardOutput=file:/home/nodeos/.local/share/eosio/nodeos/nodeos.log
StandardError=file:/home/nodeos/.local/share/eosio/nodeos/nodeos.log
[Install]
WantedBy=multi-user.target